diff --git a/qt/aqt/editor.py b/qt/aqt/editor.py index 2ed6f84d1..e315c5fd3 100644 --- a/qt/aqt/editor.py +++ b/qt/aqt/editor.py @@ -284,12 +284,11 @@ class Editor: else: toggleScript = "" tip = shortcut(tip) - theclass = class_ if not disables: - theclass += " perm" + class_ += " perm" return """