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
1 changed files with 1 additions and 1 deletions

View File

@ -493,7 +493,7 @@ class ExtractTree(FileTreeModel[FileData]):
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: