This commit is contained in:
Kovid Goyal 2025-01-07 11:16:49 +05:30
parent b36a3bb497
commit 7e1796eafd
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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]