mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
remove redundant cramming conditions
This commit is contained in:
parent
76ef17eb32
commit
f6568cb5b1
1 changed files with 2 additions and 2 deletions
|
@ -588,14 +588,14 @@ class AnkiQt(QMainWindow):
|
||||||
"(Auto)save and close. Prompt if necessary. True if okay to proceed."
|
"(Auto)save and close. Prompt if necessary. True if okay to proceed."
|
||||||
if self.deck is not None:
|
if self.deck is not None:
|
||||||
# sync (saving automatically)
|
# sync (saving automatically)
|
||||||
if self.config['syncOnClose'] and self.deck.syncName and not cramming:
|
if self.config['syncOnClose'] and self.deck.syncName:
|
||||||
self.syncDeck(False, reload=False)
|
self.syncDeck(False, reload=False)
|
||||||
while self.deckPath:
|
while self.deckPath:
|
||||||
self.app.processEvents()
|
self.app.processEvents()
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
return True
|
return True
|
||||||
# save
|
# save
|
||||||
if self.deck.modifiedSinceSave() and not cramming:
|
if self.deck.modifiedSinceSave():
|
||||||
if self.config['saveOnClose'] or self.config['syncOnClose']:
|
if self.config['saveOnClose'] or self.config['syncOnClose']:
|
||||||
self.saveDeck()
|
self.saveDeck()
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue