mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -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)
|
||||
if not hideWelcome:
|
||||
self.moveToState("noDeck")
|
||||
else:
|
||||
ui.dialogs.closeAll()
|
||||
return True
|
||||
|
||||
def onNew(self):
|
||||
|
|
Loading…
Reference in a new issue