mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -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.loadAfterSync = -1
|
||||||
self.syncName = None
|
self.syncName = None
|
||||||
self.syncDecks = self.decksToSync()
|
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:
|
else:
|
||||||
# sync one deck
|
# sync one deck
|
||||||
# hide all deck-associated dialogs
|
# hide all deck-associated dialogs
|
||||||
|
|
Loading…
Reference in a new issue