From 3c4c05a4d694bf04edf951d01a3f50bcde8ee82d Mon Sep 17 00:00:00 2001 From: David Culley <6276049+davidculley@users.noreply.github.com> Date: Wed, 10 Jul 2024 19:44:28 +0200 Subject: [PATCH] refactor: reorder variables --- qt/aqt/editor.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/qt/aqt/editor.py b/qt/aqt/editor.py index 1942f908d..83723ac6c 100644 --- a/qt/aqt/editor.py +++ b/qt/aqt/editor.py @@ -313,13 +313,10 @@ require("anki/ui").loaded.then(() => require("anki/NoteEditor").instances[0].too else: label_element = "" - id_attribute_assignment = f"id={id}" if id else "" - cmd_to_toggle_button = "toggleEditorButton(this);" if toggleable else "" - title_attribute = shortcut(title_attribute) - + cmd_to_toggle_button = "toggleEditorButton(this);" if toggleable else "" + id_attribute_assignment = f"id={id}" if id else "" class_attribute = "linkb" if rightside else "rounded" - if not disables: class_attribute = f"{class_attribute} perm"