mirror of
https://github.com/borgbase/vorta
synced 2025-01-03 05:36:19 +00:00
Fix health indicator always being green in extract view.
Fixes #1776. Now the indicator is red for unhealthy files. * src/vorta/views/extract_dialog.py (ExtractTree.data): Set red instead of green colour for unhealthy files.
This commit is contained in:
parent
2caa093541
commit
3bfa78bf04
1 changed files with 1 additions and 1 deletions
|
@ -493,7 +493,7 @@ def data(self, index: QModelIndex, role: Union[int, Qt.ItemDataRole] = Qt.ItemDa
|
||||||
if item.data.health:
|
if item.data.health:
|
||||||
return QColor(Qt.GlobalColor.green) if uses_dark_mode() else QColor(Qt.GlobalColor.darkGreen)
|
return QColor(Qt.GlobalColor.green) if uses_dark_mode() else QColor(Qt.GlobalColor.darkGreen)
|
||||||
else:
|
else:
|
||||||
return QColor(Qt.GlobalColor.green) if uses_dark_mode() else QColor(Qt.GlobalColor.darkGreen)
|
return QColor(Qt.GlobalColor.red) if uses_dark_mode() else QColor(Qt.GlobalColor.darkRed)
|
||||||
|
|
||||||
if role == Qt.ItemDataRole.ToolTipRole:
|
if role == Qt.ItemDataRole.ToolTipRole:
|
||||||
if column == 0:
|
if column == 0:
|
||||||
|
|
Loading…
Reference in a new issue