mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 09:16:38 -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,
|
restoreState,
|
||||||
saveGeom,
|
saveGeom,
|
||||||
saveSplitter,
|
saveSplitter,
|
||||||
|
saveState,
|
||||||
showInfo,
|
showInfo,
|
||||||
showWarning,
|
showWarning,
|
||||||
tooltip,
|
tooltip,
|
||||||
|
@ -437,8 +438,8 @@ class AnkiQt(QMainWindow):
|
||||||
self.unloadCollection(callback)
|
self.unloadCollection(callback)
|
||||||
|
|
||||||
def _unloadProfile(self) -> None:
|
def _unloadProfile(self) -> None:
|
||||||
self.pm.profile["mainWindowGeom"] = self.saveGeometry()
|
saveGeom(self, "mainWindow")
|
||||||
self.pm.profile["mainWindowState"] = self.saveState()
|
saveState(self, "mainWindow")
|
||||||
self.pm.save()
|
self.pm.save()
|
||||||
self.hide()
|
self.hide()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue