From 6bd80fef67fd839be1ea36245c07e90252a41666 Mon Sep 17 00:00:00 2001 From: evandrocoan Date: Sat, 30 May 2020 20:31:34 -0300 Subject: [PATCH] Add saveSplitter and restoreSplitter to clayout.py # Conflicts: # qt/aqt/clayout.py --- qt/aqt/clayout.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qt/aqt/clayout.py b/qt/aqt/clayout.py index 7af761507..a2442b7aa 100644 --- a/qt/aqt/clayout.py +++ b/qt/aqt/clayout.py @@ -25,7 +25,9 @@ from aqt.utils import ( getOnlyText, openHelp, restoreGeom, + restoreSplitter, saveGeom, + saveSplitter, shortcut, showInfo, showWarning, @@ -72,6 +74,7 @@ class CardLayout(QDialog): gui_hooks.card_layout_will_show(self) self.redraw_everything() restoreGeom(self, "CardLayout") + restoreSplitter(self.mainArea, "CardLayoutMainArea") self.setWindowModality(Qt.ApplicationModal) self.show() # take the focus away from the first input area when starting up, @@ -765,6 +768,7 @@ Enter deck to place new %s cards in, or leave blank:""" self.cancelPreviewTimer() av_player.stop_and_clear_queue() saveGeom(self, "CardLayout") + saveSplitter(self.mainArea, "CardLayoutMainArea") self.preview_web = None self.model = None self.rendered_card = None