mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
move sync on load to after deck load
This commit is contained in:
parent
dee16171ea
commit
57f655c119
1 changed files with 5 additions and 2 deletions
|
@ -84,6 +84,9 @@ class AnkiQt(QMainWindow):
|
|||
ui.splash.update()
|
||||
ui.splash.finish(self)
|
||||
self.show()
|
||||
if (self.deck and self.config['syncOnLoad'] and
|
||||
self.deck.syncName):
|
||||
self.syncDeck(interactive=False)
|
||||
|
||||
def setupMainWindow(self):
|
||||
# main window
|
||||
|
@ -617,10 +620,10 @@ To upgrade an old deck, download Anki 0.9.8.7."""))
|
|||
# try a command line argument if available
|
||||
if args:
|
||||
f = unicode(args[0], sys.getfilesystemencoding())
|
||||
return self.loadDeck(f)
|
||||
return self.loadDeck(f, sync=False)
|
||||
# try recent deck paths
|
||||
for path in self.config['recentDeckPaths']:
|
||||
r = self.loadDeck(path, interactive=False)
|
||||
r = self.loadDeck(path, interactive=False, sync=False)
|
||||
if r:
|
||||
return r
|
||||
self.onNew(initial=True)
|
||||
|
|
Loading…
Reference in a new issue