mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -05:00
make sure to clean up properly after incorrect user/pass
This commit is contained in:
parent
9b7ce444b4
commit
9b9bb4bd64
1 changed files with 3 additions and 1 deletions
|
|
@ -2362,7 +2362,9 @@ This deck already exists on your computer. Overwrite the local copy?"""),
|
||||||
def cleanNewDeck(self):
|
def cleanNewDeck(self):
|
||||||
"Unload a new deck if an initial sync failed."
|
"Unload a new deck if an initial sync failed."
|
||||||
self.deck = None
|
self.deck = None
|
||||||
self.moveToState("initial")
|
self.deckPath = None
|
||||||
|
self.moveToState("noDeck")
|
||||||
|
self.syncFinished = True
|
||||||
|
|
||||||
def setSyncStatus(self, text, *args):
|
def setSyncStatus(self, text, *args):
|
||||||
self.mainWin.welcomeText.append("<font size=+2>" + text + "</font>")
|
self.mainWin.welcomeText.append("<font size=+2>" + text + "</font>")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue