mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 21:35:47 +03:00
Propagator: If the sync was interrupted by pausing, do not show error.
Handle problems which happen because of pausing the sync as soft errors rather than normal errors which are blacklisted and displayed in the gui. This fixes bug #1959
This commit is contained in:
parent
e4fe4cb4d3
commit
617887a0c6
1 changed files with 8 additions and 0 deletions
|
@ -53,6 +53,14 @@ void PropagateItemJob::done(SyncFileItem::Status status, const QString &errorStr
|
|||
} else {
|
||||
_item._errorString = errorString;
|
||||
}
|
||||
|
||||
if( _propagator->_abortRequested.fetchAndAddRelaxed(0) ) {
|
||||
// an abort request is ongoing. Change the status to Soft-Error
|
||||
|
||||
status = SyncFileItem::SoftError;
|
||||
_item._errorString = tr("Operation was canceled by user interaction.");
|
||||
}
|
||||
|
||||
_item._status = status;
|
||||
|
||||
// Blacklisting
|
||||
|
|
Loading…
Reference in a new issue