mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
Use save
utils in main window (#1549)
Ensure additional logic like the fullscreen workaround is considered.
This commit is contained in:
parent
cc5ba4ed84
commit
5b2a389454
1 changed files with 3 additions and 2 deletions
|
@ -65,6 +65,7 @@ from aqt.utils import (
|
|||
restoreState,
|
||||
saveGeom,
|
||||
saveSplitter,
|
||||
saveState,
|
||||
showInfo,
|
||||
showWarning,
|
||||
tooltip,
|
||||
|
@ -437,8 +438,8 @@ class AnkiQt(QMainWindow):
|
|||
self.unloadCollection(callback)
|
||||
|
||||
def _unloadProfile(self) -> None:
|
||||
self.pm.profile["mainWindowGeom"] = self.saveGeometry()
|
||||
self.pm.profile["mainWindowState"] = self.saveState()
|
||||
saveGeom(self, "mainWindow")
|
||||
saveState(self, "mainWindow")
|
||||
self.pm.save()
|
||||
self.hide()
|
||||
|
||||
|
|
Loading…
Reference in a new issue