mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
Add saveSplitter and restoreSplitter to clayout.py
# Conflicts: # qt/aqt/clayout.py
This commit is contained in:
parent
a5fd8398c4
commit
6bd80fef67
1 changed files with 4 additions and 0 deletions
|
@ -25,7 +25,9 @@ from aqt.utils import (
|
||||||
getOnlyText,
|
getOnlyText,
|
||||||
openHelp,
|
openHelp,
|
||||||
restoreGeom,
|
restoreGeom,
|
||||||
|
restoreSplitter,
|
||||||
saveGeom,
|
saveGeom,
|
||||||
|
saveSplitter,
|
||||||
shortcut,
|
shortcut,
|
||||||
showInfo,
|
showInfo,
|
||||||
showWarning,
|
showWarning,
|
||||||
|
@ -72,6 +74,7 @@ class CardLayout(QDialog):
|
||||||
gui_hooks.card_layout_will_show(self)
|
gui_hooks.card_layout_will_show(self)
|
||||||
self.redraw_everything()
|
self.redraw_everything()
|
||||||
restoreGeom(self, "CardLayout")
|
restoreGeom(self, "CardLayout")
|
||||||
|
restoreSplitter(self.mainArea, "CardLayoutMainArea")
|
||||||
self.setWindowModality(Qt.ApplicationModal)
|
self.setWindowModality(Qt.ApplicationModal)
|
||||||
self.show()
|
self.show()
|
||||||
# take the focus away from the first input area when starting up,
|
# 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()
|
self.cancelPreviewTimer()
|
||||||
av_player.stop_and_clear_queue()
|
av_player.stop_and_clear_queue()
|
||||||
saveGeom(self, "CardLayout")
|
saveGeom(self, "CardLayout")
|
||||||
|
saveSplitter(self.mainArea, "CardLayoutMainArea")
|
||||||
self.preview_web = None
|
self.preview_web = None
|
||||||
self.model = None
|
self.model = None
|
||||||
self.rendered_card = None
|
self.rendered_card = None
|
||||||
|
|
Loading…
Reference in a new issue