mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Progress UI: Properly reset bar after a sync.
This commit is contained in:
parent
9ad79cfc52
commit
030d1e636b
@ -704,7 +704,10 @@ void FolderStatusModel::slotFolderSyncStateChange()
|
||||
if (folderIndex < 0) { return; }
|
||||
|
||||
SyncResult::Status state = f->syncResult().status();
|
||||
if (state == SyncResult::SyncPrepare) {
|
||||
if (state == SyncResult::SyncPrepare
|
||||
|| state == SyncResult::Problem
|
||||
|| state == SyncResult::Success) {
|
||||
// Reset the progress info before and after a sync.
|
||||
_folders[folderIndex]._progress = SubFolderInfo::Progress();
|
||||
} else if (state == SyncResult::Error) {
|
||||
_folders[folderIndex]._progress._progressString = f->syncResult().errorString();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user