From: Claudio Cambra Date: Mon, 24 Jul 2023 09:11:47 +0000 (+0800) Subject: Do not clear the whitelist on sync success X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~92^2^2~57^2~8 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=af45017e9484ca63b3dc3da5479f5d595c8a61de;p=nextcloud-desktop.git Do not clear the whitelist on sync success Signed-off-by: Claudio Cambra --- diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp index 1453cfbfa..02caa5322 100644 --- a/src/gui/folder.cpp +++ b/src/gui/folder.cpp @@ -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;