From 3407fb7b2b5a125408d8816e55c174bf98b01796 Mon Sep 17 00:00:00 2001 From: sandersantema Date: Wed, 27 May 2020 12:04:00 +0200 Subject: [PATCH] add saveGeom and restoreGeom to htmlEditor --- qt/aqt/editor.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qt/aqt/editor.py b/qt/aqt/editor.py index 912b80295..120a31cf9 100644 --- a/qt/aqt/editor.py +++ b/qt/aqt/editor.py @@ -32,6 +32,8 @@ from aqt.utils import ( getFile, openHelp, qtMenuShortcutWorkaround, + restoreGeom, + saveGeom, shortcut, showInfo, showWarning, @@ -523,6 +525,7 @@ class Editor: d = QDialog(self.widget) form = aqt.forms.edithtml.Ui_Dialog() form.setupUi(d) + restoreGeom(d, "htmlEditor") qconnect(form.buttonBox.helpRequested, lambda: openHelp("editor")) form.textEdit.setPlainText(self.note.fields[field]) d.show() @@ -540,6 +543,7 @@ class Editor: if not self.addMode: self.note.flush() self.loadNote(focusTo=field) + saveGeom(d, "htmlEditor") # Tag handling ######################################################################