mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 06:07:11 -05:00
save the cramming check before closing the deck
This commit is contained in:
parent
ac156b8493
commit
7541485e87
1 changed files with 3 additions and 2 deletions
|
|
@ -718,8 +718,9 @@ To upgrade an old deck, download Anki 0.9.8.7."""))
|
|||
|
||||
def onClose(self):
|
||||
if self.inMainWindow():
|
||||
self.saveAndClose(hideWelcome=self.isCramming())
|
||||
if self.isCramming():
|
||||
isCram = self.isCramming()
|
||||
self.saveAndClose(hideWelcome=isCram)
|
||||
if isCram:
|
||||
self.loadRecent(0)
|
||||
else:
|
||||
self.app.activeWindow().close()
|
||||
|
|
|
|||
Loading…
Reference in a new issue