mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Get rid of over-elaborate cache naming
This commit is contained in:
parent
2fe01db004
commit
5acef6ba2f
@ -808,7 +808,7 @@ class BooksModel(QAbstractTableModel): # {{{
|
||||
fmts.append((kind, fmt))
|
||||
|
||||
if fmts:
|
||||
cache_index = key + ':'.join([kind for kind,fmt in fmts])
|
||||
cache_index = key + ':DisplayRole'
|
||||
ccicon = self.column_icon(id_, key, fmts, cache_index, self.db,
|
||||
self.icon_cache, self.icon_bitmap_cache)
|
||||
if ccicon is not None:
|
||||
@ -880,7 +880,7 @@ class BooksModel(QAbstractTableModel): # {{{
|
||||
if kind in ('icon', 'icon_composed'):
|
||||
need_icon_with_text = True
|
||||
if fmts:
|
||||
cache_index = key + ':'.join([kind for kind,fmt in fmts])
|
||||
cache_index = key + ':DecorationRole'
|
||||
ccicon = self.column_icon(id_, key, fmts, cache_index, self.db,
|
||||
self.icon_cache, self.icon_bitmap_cache)
|
||||
if ccicon is not None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user