Browse Source

Merge pull request #668 from ente-io/minor_fix_sync_status

Bugfix: Fix incorrect value for  selectedAll folders flag
Neeraj Gupta 2 years ago
parent
commit
614c98a40d
1 changed files with 3 additions and 0 deletions
  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
     // remove all collectionIDs which are still marked for backup
     oldCollectionIDsForAutoSync.removeAll(newCollectionIDsForAutoSync);
     oldCollectionIDsForAutoSync.removeAll(newCollectionIDsForAutoSync);
     await removeFilesQueuedForUpload(oldCollectionIDsForAutoSync.toList());
     await removeFilesQueuedForUpload(oldCollectionIDsForAutoSync.toList());
+    if (syncStatusUpdate.values.any((syncStatus) => syncStatus == false)) {
+      Configuration.instance.setSelectAllFoldersForBackup(false).ignore();
+    }
     Bus.instance.fire(
     Bus.instance.fire(
       LocalPhotosUpdatedEvent(<File>[], source: "deviceFolderSync"),
       LocalPhotosUpdatedEvent(<File>[], source: "deviceFolderSync"),
     );
     );