From 9d454badb5a067970a3bf81fa226f36020d67aed Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 19 Jun 2017 17:24:35 +0530 Subject: [PATCH] Forgot to update text in update_shortcut --- src/calibre/gui2/widgets.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/gui2/widgets.py b/src/calibre/gui2/widgets.py index 1345bd735c..f33c121d5a 100644 --- a/src/calibre/gui2/widgets.py +++ b/src/calibre/gui2/widgets.py @@ -974,6 +974,7 @@ class LayoutButton(QToolButton): if sc: sc = sc.toString(sc.NativeText) self.shortcut = sc or '' + self.update_text() def update_text(self): t = _('Hide {}') if self.isChecked() else _('Show {}')