mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-24 14:05:58 +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) {
|
} else if (status == SyncResult::Undefined) {
|
||||||
return theme->syncStateIcon(SyncResult::SyncRunning);
|
return theme->syncStateIcon(SyncResult::SyncRunning);
|
||||||
} else {
|
} else {
|
||||||
// keep the previous icon for the prepare phase.
|
// The "Problem" *result* just means some files weren't
|
||||||
if (status == SyncResult::Problem) {
|
// 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);
|
return theme->syncStateIcon(SyncResult::Success);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
return theme->syncStateIcon(status);
|
return theme->syncStateIcon(status);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue