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