mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
aff13a9854
commit
dfb68b7047
@ -101,7 +101,9 @@ if iswindows:
|
|||||||
return entry
|
return entry
|
||||||
|
|
||||||
def entry_to_item(entry, parent):
|
def entry_to_item(entry, parent):
|
||||||
icon = load_icon_resource(entry.get('icon_resource')) or QIcon(I('blank.png'))
|
icon = load_icon_resource(entry.get('icon_resource'))
|
||||||
|
if not icon:
|
||||||
|
icon = entry_to_icon_text(entry)[0]
|
||||||
ans = QListWidgetItem(icon, entry.get('name') or _('Unknown'), parent)
|
ans = QListWidgetItem(icon, entry.get('name') or _('Unknown'), parent)
|
||||||
ans.setData(ENTRY_ROLE, entry)
|
ans.setData(ENTRY_ROLE, entry)
|
||||||
ans.setToolTip(_('Command line:') + '\n' + entry['cmdline'])
|
ans.setToolTip(_('Command line:') + '\n' + entry['cmdline'])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user