mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 13:35:58 +03:00
Folder: Check etag again after active sync #4116
Maybe more things were happening on the server?
This commit is contained in:
parent
2b7919fb3a
commit
66415831ea
1 changed files with 11 additions and 0 deletions
|
@ -817,6 +817,17 @@ void Folder::slotSyncFinished(bool success)
|
|||
void Folder::slotEmitFinishedDelayed()
|
||||
{
|
||||
emit syncFinished(_syncResult);
|
||||
|
||||
// Immediately check the etag again if there was some sync activity.
|
||||
if ((_syncResult.status() == SyncResult::Success
|
||||
|| _syncResult.status() == SyncResult::Problem)
|
||||
&& (_syncResult.firstItemDeleted()
|
||||
|| _syncResult.firstItemNew()
|
||||
|| _syncResult.firstItemRenamed()
|
||||
|| _syncResult.firstItemUpdated()
|
||||
|| _syncResult.firstNewConflictItem())) {
|
||||
slotRunEtagJob();
|
||||
}
|
||||
}
|
||||
|
||||
// the progress comes without a folder and the valid path set. Add that here
|
||||
|
|
Loading…
Reference in a new issue