Forgot to update text in update_shortcut

This commit is contained in:
Kovid Goyal 2017-06-19 17:24:35 +05:30
parent 2e21cb18ce
commit 9d454badb5
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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 {}')