From f31793e321cd616511d79b729b54b9caca5d12af Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 13 Dec 2010 04:09:25 +0900 Subject: [PATCH] direct user to set up dropbox --- ankiqt/ui/main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index 25b1c67c3..61c04f687 100755 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -2174,6 +2174,12 @@ it to your friends. if not self.deck.path: ui.utils.showInfo(_("Please save the deck first.")) return + if (not self.config['mediaLocation'] + and self.deck.s.scalar("select 1 from media limit 1")): + ui.utils.showInfo(_("""\ +Syncing sounds and images requires a free file synchronization service like \ +DropBox. Click help to learn more, and OK to continue syncing."""), + help="SyncingMedia") # enable syncing self.deck.enableSyncing() else: