only check sync status if sync started

This commit is contained in:
Damien Elmes 2009-02-07 16:51:23 +09:00
parent 71a5f645a8
commit 17eb9015b1

View file

@ -721,7 +721,7 @@ To upgrade an old deck, download Anki 0.9.8.7."""))
if self.config['syncOnClose'] and self.deck.syncName:
# force save, the user may not have set passwd/etc
self.deck.save()
self.syncDeck(False, reload=False)
if self.syncDeck(False, reload=False):
while self.deckPath:
self.app.processEvents()
time.sleep(0.1)