mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-27 23:17:13 +03:00
SocketApi: Force fowarding an OK STATUS for all parent directories
This fixes a few issues with the new FinderSync integration on OSX which can't easily clear its status cache when receiving an UPDATE_VIEW message except by unregistering the folder, but which causes flickering. This fix should also make the regeneration of the cache unnecessary on other platforms through possibly expensive RETRIEVE_FILE_STATUS commands.
This commit is contained in:
parent
78b63c34cb
commit
48624fe033
1 changed files with 2 additions and 0 deletions
|
@ -605,6 +605,7 @@ void PropagateDirectory::slotSubJobFinished(SyncFileItem::Status status)
|
|||
(sender() == _firstJob.data() && status != SyncFileItem::Success && status != SyncFileItem::Restoration)) {
|
||||
abort();
|
||||
_state = Finished;
|
||||
emit completed(*_item);
|
||||
emit finished(status);
|
||||
return;
|
||||
} else if (status == SyncFileItem::NormalError || status == SyncFileItem::SoftError) {
|
||||
|
@ -648,6 +649,7 @@ void PropagateDirectory::finalize()
|
|||
}
|
||||
}
|
||||
_state = Finished;
|
||||
emit completed(*_item);
|
||||
emit finished(_hasError == SyncFileItem::NoStatus ? SyncFileItem::Success : _hasError);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue