mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -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):
|
def onClose(self):
|
||||||
if self.inMainWindow():
|
if self.inMainWindow():
|
||||||
self.saveAndClose(hideWelcome=self.isCramming())
|
isCram = self.isCramming()
|
||||||
if self.isCramming():
|
self.saveAndClose(hideWelcome=isCram)
|
||||||
|
if isCram:
|
||||||
self.loadRecent(0)
|
self.loadRecent(0)
|
||||||
else:
|
else:
|
||||||
self.app.activeWindow().close()
|
self.app.activeWindow().close()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue