mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 14:36:01 +03:00
FolderStatusModel: Refresh folders on Problem sync #6337
We don't want to refresh too frequently. But Problem is very close to Success and very common.
This commit is contained in:
parent
5e2270bd57
commit
1fa88c9820
1 changed files with 2 additions and 1 deletions
|
@ -1102,7 +1102,8 @@ void FolderStatusModel::slotFolderSyncStateChange(Folder *f)
|
|||
// update the icon etc. now
|
||||
slotUpdateFolderState(f);
|
||||
|
||||
if (state == SyncResult::Success && f->syncResult().folderStructureWasChanged()) {
|
||||
if (f->syncResult().folderStructureWasChanged()
|
||||
&& (state == SyncResult::Success || state == SyncResult::Problem)) {
|
||||
// There is a new or a removed folder. reset all data
|
||||
auto &info = _folders[folderIndex];
|
||||
info.resetSubs(this, index(folderIndex));
|
||||
|
|
Loading…
Reference in a new issue