don't do anything if there are no decks to sync; warn user

This commit is contained in:
Damien Elmes 2011-02-09 17:52:18 +09:00
parent c25b68fd87
commit ae89409ae7

View file

@ -2219,6 +2219,12 @@ DropBox. Click help to learn more, and OK to continue syncing."""),
self.loadAfterSync = -1
self.syncName = None
self.syncDecks = self.decksToSync()
if not self.syncDecks:
if interactive:
ui.utils.showInfo(_("""\
Please open a deck and run File>Sync. After you do this once, the deck \
will sync automatically from then on."""))
return
else:
# sync one deck
# hide all deck-associated dialogs