mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
only check sync status if sync started
This commit is contained in:
parent
71a5f645a8
commit
17eb9015b1
1 changed files with 5 additions and 5 deletions
|
@ -721,11 +721,11 @@ To upgrade an old deck, download Anki 0.9.8.7."""))
|
||||||
if self.config['syncOnClose'] and self.deck.syncName:
|
if self.config['syncOnClose'] and self.deck.syncName:
|
||||||
# force save, the user may not have set passwd/etc
|
# force save, the user may not have set passwd/etc
|
||||||
self.deck.save()
|
self.deck.save()
|
||||||
self.syncDeck(False, reload=False)
|
if 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
|
||||||
# auto save
|
# auto save
|
||||||
if self.config['saveOnClose'] or self.config['syncOnClose']:
|
if self.config['saveOnClose'] or self.config['syncOnClose']:
|
||||||
self.save()
|
self.save()
|
||||||
|
|
Loading…
Reference in a new issue