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."
|
||||
if self.deck is not None:
|
||||
# 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)
|
||||
while self.deckPath:
|
||||
self.app.processEvents()
|
||||
time.sleep(0.1)
|
||||
return True
|
||||
# save
|
||||
if self.deck.modifiedSinceSave() and not cramming:
|
||||
if self.deck.modifiedSinceSave():
|
||||
if self.config['saveOnClose'] or self.config['syncOnClose']:
|
||||
self.saveDeck()
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue