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):
|
def update_shortcut(self, action_toggle=None):
|
||||||
action_toggle = action_toggle or getattr(self, 'action_toggle', None)
|
action_toggle = action_toggle or getattr(self, 'action_toggle', None)
|
||||||
if action_toggle:
|
if action_toggle:
|
||||||
sc = action_toggle.shortcut()
|
sc = ', '.join(sc.toString(sc.NativeText)
|
||||||
if sc:
|
for sc in action_toggle.shortcuts())
|
||||||
sc = sc.toString(sc.NativeText)
|
|
||||||
self.shortcut = sc or ''
|
self.shortcut = sc or ''
|
||||||
self.update_text()
|
self.update_text()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user