mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
Fixed backup does not automatically resume when reopening app
This commit is contained in:
parent
94cc1d7dbd
commit
21d1920d68
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue