mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -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.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