mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/cbhaley/calibre
This commit is contained in:
commit
1d3c4f31a0
@ -970,9 +970,8 @@ class LayoutButton(QToolButton):
|
||||
def update_shortcut(self, action_toggle=None):
|
||||
action_toggle = action_toggle or getattr(self, 'action_toggle', None)
|
||||
if action_toggle:
|
||||
sc = action_toggle.shortcut()
|
||||
if sc:
|
||||
sc = sc.toString(sc.NativeText)
|
||||
sc = ', '.join(sc.toString(sc.NativeText)
|
||||
for sc in action_toggle.shortcuts())
|
||||
self.shortcut = sc or ''
|
||||
self.update_text()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user