mirror of
https://github.com/immich-app/immich.git
synced 2024-12-22 01:47:08 +02:00
Fixed backup does not automatically resume when reopening app
This commit is contained in:
parent
94cc1d7dbd
commit
21d1920d68
@ -47,6 +47,8 @@ class _ImmichAppState extends ConsumerState<ImmichApp> with WidgetsBindingObserv
|
|||||||
debugPrint("[APP STATE] inactive");
|
debugPrint("[APP STATE] inactive");
|
||||||
ref.watch(appStateProvider.notifier).state = AppStateEnum.inactive;
|
ref.watch(appStateProvider.notifier).state = AppStateEnum.inactive;
|
||||||
ref.watch(websocketProvider.notifier).disconnect();
|
ref.watch(websocketProvider.notifier).disconnect();
|
||||||
|
ref.watch(backupProvider.notifier).cancelBackup();
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case AppLifecycleState.paused:
|
case AppLifecycleState.paused:
|
||||||
debugPrint("[APP STATE] paused");
|
debugPrint("[APP STATE] paused");
|
||||||
|
Loading…
Reference in New Issue
Block a user