Skip to content

Commit

Permalink
when users choose to delete invalid folders, restart sync automatically
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu Gallien <[email protected]>
  • Loading branch information
mgallien committed Sep 4, 2024
1 parent 411c0bd commit abd7fc0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/gui/folder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1690,9 +1690,11 @@ void Folder::slotNeedToRemoveRemnantsReadOnlyFolders(const QList<SyncFileItemPtr
FileSystem::removeRecursively(localPath + oneFolder->_file);
}
}
callback(cancel);
if (cancel) {
setSyncPaused(true);
callback(true);
setSyncPaused(cancel);
if (!cancel) {
_lastEtag.clear();
slotScheduleThisFolder();
}
});
connect(this, &Folder::destroyed, msgBox, &QMessageBox::deleteLater);
Expand Down

0 comments on commit abd7fc0

Please sign in to comment.