From 3c53a961a303a8800c302b5837789b7f40b2a30e Mon Sep 17 00:00:00 2001 From: RumovZ Date: Mon, 30 Aug 2021 11:07:40 +0200 Subject: [PATCH] Reset flags when loading a profile... ... not only on startup. --- qt/aqt/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/aqt/main.py b/qt/aqt/main.py index cdf78b842..b45c82457 100644 --- a/qt/aqt/main.py +++ b/qt/aqt/main.py @@ -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")