mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-24 05:55:59 +03:00
Merge pull request #352 from nextcloud/upstream/pr/6438
Folders: Use "Problem" icon for unresolved conflicts #6277
This commit is contained in:
commit
a7b7344659
1 changed files with 9 additions and 3 deletions
|
@ -248,9 +248,15 @@ QVariant FolderStatusModel::data(const QModelIndex &index, int role) const
|
|||
} else if (status == SyncResult::Undefined) {
|
||||
return theme->syncStateIcon(SyncResult::SyncRunning);
|
||||
} else {
|
||||
// keep the previous icon for the prepare phase.
|
||||
if (status == SyncResult::Problem) {
|
||||
return theme->syncStateIcon(SyncResult::Success);
|
||||
// The "Problem" *result* just means some files weren't
|
||||
// synced, so we show "Success" in these cases. But we
|
||||
// do use the "Problem" *icon* for unresolved conflicts.
|
||||
if (status == SyncResult::Success || status == SyncResult::Problem) {
|
||||
if (f->syncResult().hasUnresolvedConflicts()) {
|
||||
return theme->syncStateIcon(SyncResult::Problem);
|
||||
} else {
|
||||
return theme->syncStateIcon(SyncResult::Success);
|
||||
}
|
||||
} else {
|
||||
return theme->syncStateIcon(status);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue