mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-29 12:19:03 +03:00
Do not clear the whitelist on sync success
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
449bac837b
commit
af45017e94
1 changed files with 0 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue