mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Forgot to update text in update_shortcut
This commit is contained in:
parent
2e21cb18ce
commit
9d454badb5
@ -974,6 +974,7 @@ class LayoutButton(QToolButton):
|
|||||||
if sc:
|
if sc:
|
||||||
sc = sc.toString(sc.NativeText)
|
sc = sc.toString(sc.NativeText)
|
||||||
self.shortcut = sc or ''
|
self.shortcut = sc or ''
|
||||||
|
self.update_text()
|
||||||
|
|
||||||
def update_text(self):
|
def update_text(self):
|
||||||
t = _('Hide {}') if self.isChecked() else _('Show {}')
|
t = _('Hide {}') if self.isChecked() else _('Show {}')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user