mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 09:30:13 +03:00
Handle new sync result enum.
This commit is contained in:
parent
be328581a7
commit
c7d30bae98
2 changed files with 5 additions and 1 deletions
|
@ -557,7 +557,8 @@ SyncResult FolderMan::accountStatus(const QList<Folder*> &folders)
|
||||||
if ( overallResult.status() != SyncResult::Error )
|
if ( overallResult.status() != SyncResult::Error )
|
||||||
overallResult.setStatus( SyncResult::SetupError );
|
overallResult.setStatus( SyncResult::SetupError );
|
||||||
break;
|
break;
|
||||||
|
case SyncResult::SyncAbortRequested:
|
||||||
|
break;
|
||||||
// no default case on purpose, check compiler warnings
|
// no default case on purpose, check compiler warnings
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,6 +67,9 @@ QString SyncResult::statusString() const
|
||||||
case Unavailable:
|
case Unavailable:
|
||||||
re = QLatin1String("Not availabe");
|
re = QLatin1String("Not availabe");
|
||||||
break;
|
break;
|
||||||
|
case SyncAbortRequested:
|
||||||
|
re = QLatin1String("Sync Request aborted by user");
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
return re;
|
return re;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue