Make partitioning icons respect the "Show value icons" option instead of the "show category icons" one

This commit is contained in:
Charles Haley 2025-01-28 21:24:08 +00:00
parent 0b4a3a8661
commit 9dd67cd7e8

View File

@ -164,7 +164,12 @@ class TagTreeItem: # {{{
cc = self.category_custom_icons.get(self.tag.category, None)
else:
cc = self.icon
elif self.type == self.CATEGORY and gprefs['tag_browser_show_category_icons']:
elif self.type == self.CATEGORY:
if self.parent.type == self.ROOT:
if gprefs['tag_browser_show_category_icons']:
cc = self.category_custom_icons.get(self.category_key, None)
else:
if gprefs['tag_browser_show_value_icons']:
cc = self.category_custom_icons.get(self.category_key, None)
self.icon_state_map[0] = cc or QIcon()