]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
Do not clear the whitelist on sync success
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Mon, 24 Jul 2023 09:11:47 +0000 (17:11 +0800)
committerClaudio Cambra <claudio.cambra@nextcloud.com>
Fri, 4 Aug 2023 09:44:22 +0000 (17:44 +0800)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/folder.cpp

index 1453cfbfacec75bc2c450b270f182a0d2e14423b..02caa5322e8196c561bd4f953be0d6ef740c98f3 100644 (file)
@@ -1130,11 +1130,6 @@ void Folder::slotSyncFinished(bool success)
         qCInfo(lcFolder) << "the last" << _consecutiveFailingSyncs << "syncs failed";
     }
 
-    if (_syncResult.status() == SyncResult::Success && success) {
-        // Clear the white list as all the folders that should be on that list are sync-ed
-        journalDb()->setSelectiveSyncList(SyncJournalDb::SelectiveSyncWhiteList, QStringList());
-    }
-
     if ((_syncResult.status() == SyncResult::Success
             || _syncResult.status() == SyncResult::Problem)
         && success) {
@@ -1265,7 +1260,6 @@ void Folder::slotExistingFolderNowBig(const QString &folderPath)
     auto blacklist = journal->getSelectiveSyncList(SyncJournalDb::SelectiveSyncBlackList, &ok1);
     auto whitelist = journal->getSelectiveSyncList(SyncJournalDb::SelectiveSyncWhiteList, &ok2);
 
-
     const auto inDecidedLists = blacklist.contains(trailSlashFolderPath) || whitelist.contains(trailSlashFolderPath);
     if (inDecidedLists) {
         return;