Ver Fonte

Merge pull request #668 from ente-io/minor_fix_sync_status

Bugfix: Fix incorrect value for  selectedAll folders flag
Neeraj Gupta há 2 anos atrás
pai
commit
614c98a40d
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      lib/services/remote_sync_service.dart

+ 3 - 0
lib/services/remote_sync_service.dart

@@ -359,6 +359,9 @@ class RemoteSyncService {
     // remove all collectionIDs which are still marked for backup
     oldCollectionIDsForAutoSync.removeAll(newCollectionIDsForAutoSync);
     await removeFilesQueuedForUpload(oldCollectionIDsForAutoSync.toList());
+    if (syncStatusUpdate.values.any((syncStatus) => syncStatus == false)) {
+      Configuration.instance.setSelectAllFoldersForBackup(false).ignore();
+    }
     Bus.instance.fire(
       LocalPhotosUpdatedEvent(<File>[], source: "deviceFolderSync"),
     );