瀏覽代碼

Fixed backup does not automatically resume when reopening app

Alex Tran 3 年之前
父節點
當前提交
21d1920d68
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      mobile/lib/main.dart

+ 2 - 0
mobile/lib/main.dart

@@ -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");