only sync if deck sync set

This commit is contained in:
Damien Elmes 2009-02-07 16:27:28 +09:00
parent 9363e5f6f4
commit 301c8476a1

View file

@ -561,7 +561,8 @@ To upgrade an old deck, download Anki 0.9.8.7."""))
return
if uprecent:
self.updateRecentFiles(self.deck.path)
if sync and self.config['syncOnLoad']:
if (sync and self.config['syncOnLoad']
and self.deck.syncName):
if self.syncDeck(interactive=False):
return True
try: