mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
should init profile regardless of upgrade being required or not
This commit is contained in:
parent
11f95139f4
commit
67c2ccc954
2 changed files with 2 additions and 2 deletions
|
@ -35,6 +35,8 @@ class AnkiQt(QMainWindow):
|
||||||
self.setupLang(force=self.pm.meta['defaultLang'])
|
self.setupLang(force=self.pm.meta['defaultLang'])
|
||||||
# running 2.0 for the first time?
|
# running 2.0 for the first time?
|
||||||
if self.pm.meta['firstRun']:
|
if self.pm.meta['firstRun']:
|
||||||
|
# load the new deck user profile
|
||||||
|
self.pm.load(self.pm.profiles()[0])
|
||||||
# upgrade if necessary
|
# upgrade if necessary
|
||||||
from aqt.upgrade import Upgrader
|
from aqt.upgrade import Upgrader
|
||||||
u = Upgrader(self)
|
u = Upgrader(self)
|
||||||
|
|
|
@ -19,8 +19,6 @@ class Upgrader(object):
|
||||||
# does an old config file exist?
|
# does an old config file exist?
|
||||||
if not os.path.exists(p):
|
if not os.path.exists(p):
|
||||||
return
|
return
|
||||||
# load the new deck user profile
|
|
||||||
self.mw.pm.load(self.mw.pm.profiles()[0])
|
|
||||||
# load old settings and copy over
|
# load old settings and copy over
|
||||||
self._loadConf(p)
|
self._loadConf(p)
|
||||||
self._copySettings()
|
self._copySettings()
|
||||||
|
|
Loading…
Reference in a new issue