mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Reset flags when loading a profile...
... not only on startup.
This commit is contained in:
parent
9a27e44ff8
commit
3c53a961a3
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,6 @@ class AnkiQt(QMainWindow):
|
||||||
self.col: Optional[Collection] = None
|
self.col: Optional[Collection] = None
|
||||||
self.taskman = TaskManager(self)
|
self.taskman = TaskManager(self)
|
||||||
self.media_syncer = MediaSyncer(self)
|
self.media_syncer = MediaSyncer(self)
|
||||||
self.flags = FlagManager(self)
|
|
||||||
aqt.mw = self
|
aqt.mw = self
|
||||||
self.app = app
|
self.app = app
|
||||||
self.pm = profileManager
|
self.pm = profileManager
|
||||||
|
@ -404,6 +403,7 @@ class AnkiQt(QMainWindow):
|
||||||
if not self.loadCollection():
|
if not self.loadCollection():
|
||||||
return
|
return
|
||||||
|
|
||||||
|
self.flags = FlagManager(self)
|
||||||
# show main window
|
# show main window
|
||||||
if self.pm.profile["mainWindowState"]:
|
if self.pm.profile["mainWindowState"]:
|
||||||
restoreGeom(self, "mainWindow")
|
restoreGeom(self, "mainWindow")
|
||||||
|
|
Loading…
Reference in a new issue