mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 23:12:21 -04:00
don't do anything if there are no decks to sync; warn user
This commit is contained in:
parent
c25b68fd87
commit
ae89409ae7
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue