1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2024-12-22 07:43:09 +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:
jetchirag 2023-08-17 22:19:17 +05:30 committed by GitHub
parent 2caa093541
commit 3bfa78bf04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: