Reset flags when loading a profile...

... not only on startup.
This commit is contained in:
RumovZ 2021-08-30 11:07:40 +02:00
parent 9a27e44ff8
commit 3c53a961a3

View file

@ -114,7 +114,6 @@ class AnkiQt(QMainWindow):
self.col: Optional[Collection] = None
self.taskman = TaskManager(self)
self.media_syncer = MediaSyncer(self)
self.flags = FlagManager(self)
aqt.mw = self
self.app = app
self.pm = profileManager
@ -404,6 +403,7 @@ class AnkiQt(QMainWindow):
if not self.loadCollection():
return
self.flags = FlagManager(self)
# show main window
if self.pm.profile["mainWindowState"]:
restoreGeom(self, "mainWindow")