mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
...
This commit is contained in:
parent
b36a3bb497
commit
7e1796eafd
@ -33,7 +33,10 @@ class Formats(QAbstractListModel):
|
||||
fmt = fmt.upper()
|
||||
return f'{fmt} [{count}]'
|
||||
if role == Qt.ItemDataRole.DecorationRole:
|
||||
return (self.fi.icon_from_ext(self.fmts[row].lower()))
|
||||
fmt = self.fmts[row]
|
||||
if fmt == '..cover..':
|
||||
fmt = 'jpg'
|
||||
return (self.fi.icon_from_ext(fmt.lower()))
|
||||
if role == Qt.ItemDataRole.ToolTipRole:
|
||||
fmt = self.fmts[row]
|
||||
count = self.counts[fmt]
|
||||
|
Loading…
x
Reference in New Issue
Block a user