From e8c80174eb48a5412bde90c35a497e74fa74f5f1 Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Sun, 4 Oct 2020 22:51:34 +0200 Subject: [PATCH] Refactor out theclass assignment --- qt/aqt/editor.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 """