mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
8b6a6802b7
commit
cac8476f0e
@ -453,7 +453,7 @@ class TagsModel(QAbstractItemModel): # {{{
|
|||||||
|
|
||||||
is_formats = key == 'formats'
|
is_formats = key == 'formats'
|
||||||
if is_formats:
|
if is_formats:
|
||||||
fip = file_icon_provider()
|
fip = file_icon_provider().icon_from_ext
|
||||||
|
|
||||||
for idx,tag in enumerate(data[key]):
|
for idx,tag in enumerate(data[key]):
|
||||||
components = None
|
components = None
|
||||||
@ -532,7 +532,7 @@ class TagsModel(QAbstractItemModel): # {{{
|
|||||||
not category_is_hierarchical or len(components) == 1):
|
not category_is_hierarchical or len(components) == 1):
|
||||||
if is_formats:
|
if is_formats:
|
||||||
try:
|
try:
|
||||||
tag.icon = fip.icon_from_ext(tag.name.replace('ORIGINAL_', ''))
|
tag.icon = fip(tag.name.replace('ORIGINAL_', ''))
|
||||||
except Exception:
|
except Exception:
|
||||||
tag.icon = self.category_custom_icons[key]
|
tag.icon = self.category_custom_icons[key]
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user