mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 05:15:40 +03:00
Always send a progress message at the end of a sync #5290
Some listeners detect whether a sync is finished by checking for isUpdatingEstimates and completedFiles >= totalFiles. But if a sync didn't transfer any files we never sent signal with these values. Now we do.
This commit is contained in:
parent
6451eb3ade
commit
e485c5c008
1 changed files with 5 additions and 0 deletions
|
@ -1070,6 +1070,11 @@ void SyncEngine::slotFinished(bool success)
|
|||
}
|
||||
|
||||
_journal->commit("All Finished.", false);
|
||||
|
||||
// Send final progress information even if no
|
||||
// files needed propagation
|
||||
emit transmissionProgress(*_progressInfo);
|
||||
|
||||
emit treeWalkResult(_syncedItems);
|
||||
finalize(success);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue