From 2324a60c761c7e97d796cc5ce71088620338601f Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Mon, 24 Jul 2023 16:06:00 +0800 Subject: [PATCH] Stop current sync when existing folder becomes big and we have enabled disabling sync of folders that become big Signed-off-by: Claudio Cambra --- src/gui/folder.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp index 5b5563d57..3c0e5fd6e 100644 --- a/src/gui/folder.cpp +++ b/src/gui/folder.cpp @@ -1268,6 +1268,8 @@ void Folder::slotExistingFolderNowBig(const QString &folderPath) if (stopSyncing) { blacklist.append(trailSlashFolderPath); journal->setSelectiveSyncList(SyncJournalDb::SelectiveSyncBlackList, blacklist); + slotTerminateSync(); + scheduleThisFolderSoon(); } else { whitelist.append(trailSlashFolderPath); journal->setSelectiveSyncList(SyncJournalDb::SelectiveSyncWhiteList, whitelist); -- 2.30.2