mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Fix the tag browser not using the existing user category icon (tb_folder.png). Alternate fix for #1810217.
Note: the icon suggested in the enhancement request requires attribution, so I didn't use it.
This commit is contained in:
parent
786b9d841b
commit
a8bcc2985a
@ -424,7 +424,9 @@ class TagsModel(QAbstractItemModel): # {{{
|
||||
if self.category_custom_icons.get(key, None) is None:
|
||||
self.category_custom_icons[key] = QIcon(I(
|
||||
category_icon_map['gst'] if is_gst else
|
||||
category_icon_map.get(key, category_icon_map['custom:'])))
|
||||
category_icon_map.get(key,
|
||||
(category_icon_map['user:'] if key.startswith('@') else
|
||||
category_icon_map['custom:']))))
|
||||
|
||||
if key.startswith('@'):
|
||||
path_parts = [p for p in key.split('.')]
|
||||
|
Loading…
x
Reference in New Issue
Block a user