Skip to content

Commit

Permalink
Ensure blacklists get updated when removing folder sync
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Jan 3, 2023
1 parent 543d9d7 commit 1ecb2c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/folder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1390,6 +1390,10 @@ void Folder::removeLocalE2eFiles()
// only start sync if blackList has changed
// database lists will get updated during discovery
const auto changes = (existingBlacklistSet - expandedBlacklistSet) + (expandedBlacklistSet - existingBlacklistSet);

_journal.setSelectiveSyncList(SyncJournalDb::SelectiveSyncBlackList, expandedBlacklistSet.values());
_journal.setSelectiveSyncList(SyncJournalDb::SelectiveSyncE2eFoldersToRemoveFromBlacklist, changes.values());

if (!changes.isEmpty()) {
_journal.setSelectiveSyncList(SyncJournalDb::SelectiveSyncUndecidedList, QStringList());
if (isBusy()) {
Expand Down

0 comments on commit 1ecb2c0

Please sign in to comment.