mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -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'])
|
||||
# running 2.0 for the first time?
|
||||
if self.pm.meta['firstRun']:
|
||||
# load the new deck user profile
|
||||
self.pm.load(self.pm.profiles()[0])
|
||||
# upgrade if necessary
|
||||
from aqt.upgrade import Upgrader
|
||||
u = Upgrader(self)
|
||||
|
|
|
@ -19,8 +19,6 @@ class Upgrader(object):
|
|||
# does an old config file exist?
|
||||
if not os.path.exists(p):
|
||||
return
|
||||
# load the new deck user profile
|
||||
self.mw.pm.load(self.mw.pm.profiles()[0])
|
||||
# load old settings and copy over
|
||||
self._loadConf(p)
|
||||
self._copySettings()
|
||||
|
|
Loading…
Reference in a new issue