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