Skip to content

Commit

Permalink
Fix health indicator always being green in extract view.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jetchirag authored Aug 17, 2023
1 parent 2caa093 commit 3bfa78b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vorta/views/extract_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ def data(self, index: QModelIndex, role: Union[int, Qt.ItemDataRole] = Qt.ItemDa
if item.data.health:
return QColor(Qt.GlobalColor.green) if uses_dark_mode() else QColor(Qt.GlobalColor.darkGreen)
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 column == 0:
Expand Down

0 comments on commit 3bfa78b

Please sign in to comment.