mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
fix: icon not loading when using a PTM
This commit is contained in:
parent
c1b3340d37
commit
da52211180
@ -144,7 +144,7 @@ class TagTreeItem: # {{{
|
||||
if val_icon is None and TEMPLATE_ICON_INDICATOR in self.value_icons[category]:
|
||||
t = self.eval_formatter.safe_format(self.value_icons[category][TEMPLATE_ICON_INDICATOR][0],
|
||||
{'category': category, 'value': self.tag.original_name},
|
||||
'VALUE_ICON_TEMPLATE_ERROR', None)
|
||||
'VALUE_ICON_TEMPLATE_ERROR', {})
|
||||
if t:
|
||||
val_icon = (os.path.join('template_icons', t), False)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user