mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'fix-tag-brower-attribute-error' of https://github.com/un-pogaz/calibre
This commit is contained in:
commit
fdff266a5d
@ -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:
|
||||
|
@ -193,7 +193,7 @@ def get_icon_for_node(node, parent, node_to_tag_map, tag_map, eval_formatter):
|
||||
if val_icon is None and TEMPLATE_ICON_INDICATOR in value_icons.get(category, {}):
|
||||
t = eval_formatter.safe_format(
|
||||
value_icons[category][TEMPLATE_ICON_INDICATOR][0], {'category': category, 'value': name_for_icon(node)},
|
||||
'VALUE_ICON_TEMPLATE_ERROR', None)
|
||||
'VALUE_ICON_TEMPLATE_ERROR', {})
|
||||
if t:
|
||||
# Use POSIX path separator
|
||||
val_icon = 'template_icons/' + t
|
||||
|
Loading…
x
Reference in New Issue
Block a user