From f01253c19af21fa490785403f76b099e85cd6b2f Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 10 Jan 2011 18:53:57 +0900 Subject: [PATCH] add confirmation to localize media --- ankiqt/ui/main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index 348447d8c..6d04f0fa3 100755 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -3127,6 +3127,11 @@ doubt.""")) ui.utils.showInfo(msg) def onLocalizeMedia(self): + if not ui.utils.askUser(_("""\ +This will look for remote images and sounds on your cards, download them to \ +your media folder, and convert the links to local ones. \ +It can take a long time. Proceed?""")): + return res = downloadRemote(self.deck) count = len(res[0]) msg = ngettext("%d successfully downloaded.",