mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Merge pull request #1348 from RumovZ/fix-profile-flags
Fix flags not updating when changing profile
This commit is contained in:
commit
37941c7d93
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue