mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -04:00
make sure to close all dialogs when opening new deck
This commit is contained in:
parent
857f17fbf0
commit
618bfe13e5
1 changed files with 2 additions and 0 deletions
|
@ -638,6 +638,8 @@ Error was:\n%(f1)s\n...\n%(f2)s""") % {'f1': fmt1, 'f2': fmt2})
|
||||||
os.unlink(path)
|
os.unlink(path)
|
||||||
if not hideWelcome:
|
if not hideWelcome:
|
||||||
self.moveToState("noDeck")
|
self.moveToState("noDeck")
|
||||||
|
else:
|
||||||
|
ui.dialogs.closeAll()
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def onNew(self):
|
def onNew(self):
|
||||||
|
|
Loading…
Reference in a new issue