mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
Fix main window geometry/state not being restored in some cases (#2558)
Introduced by 19b08eb280
Report: https://forums.ankiweb.net/t/65-the-size-of-the-main-window-is-reset-every-time-it-is-closed-again/31364
This commit is contained in:
parent
9d4d6bd98b
commit
0100ae7431
1 changed files with 2 additions and 3 deletions
|
@ -476,7 +476,6 @@ class AnkiQt(QMainWindow):
|
||||||
self.setup_sound()
|
self.setup_sound()
|
||||||
self.flags = FlagManager(self)
|
self.flags = FlagManager(self)
|
||||||
# show main window
|
# show main window
|
||||||
if self.pm.profile.get("mainWindowState"):
|
|
||||||
restoreGeom(self, "mainWindow")
|
restoreGeom(self, "mainWindow")
|
||||||
restoreState(self, "mainWindow")
|
restoreState(self, "mainWindow")
|
||||||
# titlebar
|
# titlebar
|
||||||
|
|
Loading…
Reference in a new issue