mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
fix open online when no initial password
This commit is contained in:
parent
1e9c3ff253
commit
d1e8a1d18a
1 changed files with 2 additions and 2 deletions
|
@ -760,7 +760,7 @@ To upgrade an old deck, download Anki 0.9.8.7."""))
|
|||
return self.app.activeWindow() == self
|
||||
|
||||
def onNew(self, initial=False, path=None):
|
||||
if not self.inMainWindow(): return
|
||||
if not self.inMainWindow() and not path: return
|
||||
if not self.saveAndClose(hideWelcome=True): return
|
||||
if initial:
|
||||
path = os.path.join(self.documentDir, "mydeck.anki")
|
||||
|
@ -817,7 +817,7 @@ To upgrade an old deck, download Anki 0.9.8.7."""))
|
|||
self.deck.syncName = u"something"
|
||||
self.deck.lastLoaded = self.deck.modified
|
||||
if self.config['syncUsername'] and self.config['syncPassword']:
|
||||
if self.syncDeck(onlyMerge=True, reload=2):
|
||||
if self.syncDeck(onlyMerge=True, reload=2, interactive=False):
|
||||
return
|
||||
self.deck = None
|
||||
self.moveToState("initial")
|
||||
|
|
Loading…
Reference in a new issue