mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-29 04:08:54 +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
|
// update the icon etc. now
|
||||||
slotUpdateFolderState(f);
|
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
|
// There is a new or a removed folder. reset all data
|
||||||
auto &info = _folders[folderIndex];
|
auto &info = _folders[folderIndex];
|
||||||
info.resetSubs(this, index(folderIndex));
|
info.resetSubs(this, index(folderIndex));
|
||||||
|
|
Loading…
Reference in a new issue