Merge pull request #1348 from RumovZ/fix-profile-flags

Fix flags not updating when changing profile
This commit is contained in:
Damien Elmes 2021-08-30 22:27:27 +10:00 committed by GitHub
commit 37941c7d93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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")