mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Ensure shortcut action for context menus uses an updated icon
actions from third party plugins set their icons in genesis() so the action will not have an icon
This commit is contained in:
parent
15c6ee80de
commit
5bede4e364
@ -413,6 +413,7 @@ if isosx:
|
||||
ia = iactions[what]
|
||||
ac = ia.qaction
|
||||
if not ac.menu() and hasattr(ia, 'shortcut_action_for_context_menu'):
|
||||
ia.shortcut_action_for_context_menu.setIcon(ac.icon())
|
||||
ac = ia.shortcut_action_for_context_menu
|
||||
m.addAction(CloneAction(ac, m))
|
||||
|
||||
@ -506,6 +507,7 @@ else:
|
||||
ia = iactions[what]
|
||||
ac = ia.qaction
|
||||
if not ac.menu() and hasattr(ia, 'shortcut_action_for_context_menu'):
|
||||
ia.shortcut_action_for_context_menu.setIcon(ac.icon())
|
||||
ac = ia.shortcut_action_for_context_menu
|
||||
m.addAction(ac)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user