mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
f0360ecc1d
commit
403f60bd1c
@ -165,7 +165,10 @@ def clone_menu(menu):
|
||||
return ans
|
||||
sc = ac.shortcut()
|
||||
sc = '' if sc.isEmpty() else sc.toString(sc.NativeText)
|
||||
ans = QAction(ac.icon(), ac.text() + '\t' + sc, parent)
|
||||
text = ac.text()
|
||||
if '\t' not in text:
|
||||
text += '\t' + sc
|
||||
ans = QAction(ac.icon(), text, parent)
|
||||
ans.triggered.connect(ac.trigger)
|
||||
ans.setEnabled(ac.isEnabled())
|
||||
ans.setStatusTip(ac.statusTip())
|
||||
|
Loading…
x
Reference in New Issue
Block a user