Fixed backup does not automatically resume when reopening app

This commit is contained in:
Alex Tran 2022-03-11 11:02:33 -06:00
parent 94cc1d7dbd
commit 21d1920d68

View File

@ -47,6 +47,8 @@ class _ImmichAppState extends ConsumerState<ImmichApp> with WidgetsBindingObserv
debugPrint("[APP STATE] inactive");
ref.watch(appStateProvider.notifier).state = AppStateEnum.inactive;
ref.watch(websocketProvider.notifier).disconnect();
ref.watch(backupProvider.notifier).cancelBackup();
break;
case AppLifecycleState.paused:
debugPrint("[APP STATE] paused");