mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Tag browser: Fix incorrect icon for user categories. Fixes #1810217 [[Enhancement] User category icon](https://bugs.launchpad.net/calibre/+bug/1810217)
Merge branch 'master' of https://github.com/cbhaley/calibre
This commit is contained in:
commit
31917db14f
@ -424,7 +424,9 @@ class TagsModel(QAbstractItemModel): # {{{
|
|||||||
if self.category_custom_icons.get(key, None) is None:
|
if self.category_custom_icons.get(key, None) is None:
|
||||||
self.category_custom_icons[key] = QIcon(I(
|
self.category_custom_icons[key] = QIcon(I(
|
||||||
category_icon_map['gst'] if is_gst else
|
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('@'):
|
if key.startswith('@'):
|
||||||
path_parts = [p for p in key.split('.')]
|
path_parts = [p for p in key.split('.')]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user