Remove tooltip for non-checkable items

This commit is contained in:
Veronica Berglyd Olsen
2024-11-20 22:36:44 +01:00
parent 26b4da9eb4
commit a45ab2f017
3 changed files with 10 additions and 31 deletions
+8 -2
View File
@@ -335,8 +335,14 @@ class NWItem:
"""Return the relevant active status label and icon for
the current item based on its type.
"""
key = ("checked" if self._active else "unchecked") if self.isFileType() else "noncheckable"
return trConst(nwLabels.ACTIVE_NAME[key]), SHARED.theme.getIcon(key)
if self.isFileType():
key = "checked" if self._active else "unchecked"
text = trConst(nwLabels.ACTIVE_NAME[key])
icon = SHARED.theme.getIcon(key)
else:
text = ""
icon = SHARED.theme.getIcon("noncheckable")
return text, icon
##
# Checker Methods