Explorar el Código

Fixed backup does not automatically resume when reopening app

Alex Tran hace 3 años
padre
commit
21d1920d68
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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");