mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-10 00:07:54 -06:00
Removed suggestions from inbox, added translations, added paging to inbox, visual updates, changed default matching algorithm to auto
This commit is contained in:
@@ -26,6 +26,18 @@ class ConnectivityCubit extends Cubit<ConnectivityState> {
|
||||
}
|
||||
}
|
||||
|
||||
void reload() async {
|
||||
if (_sub == null) {
|
||||
initialize();
|
||||
} else {
|
||||
final bool isConnected =
|
||||
await connectivityStatusService.isConnectedToInternet();
|
||||
emit(isConnected
|
||||
? ConnectivityState.connected
|
||||
: ConnectivityState.notConnected);
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> close() {
|
||||
_sub?.cancel();
|
||||
|
||||
Reference in New Issue
Block a user