mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Throw away empty icon specifications in icon rule evaluation
This commit is contained in:
parent
87eb1fb164
commit
0a02aa4827
@ -117,7 +117,8 @@ class ColumnIcon(object): # {{{
|
|||||||
template_cache=template_cache)
|
template_cache=template_cache)
|
||||||
if not rule_icons:
|
if not rule_icons:
|
||||||
continue
|
continue
|
||||||
icon_list = [ic.strip() for ic in rule_icons.split(':')]
|
icon_list = [ic.strip() for ic in rule_icons.split(':') if ic.strip()]
|
||||||
|
print(icon_list)
|
||||||
icons.extend(icon_list)
|
icons.extend(icon_list)
|
||||||
if icon_list and not kind.endswith('_composed'):
|
if icon_list and not kind.endswith('_composed'):
|
||||||
break
|
break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user