mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
add confirmation to localize media
This commit is contained in:
parent
bc1526794f
commit
f01253c19a
1 changed files with 5 additions and 0 deletions
|
@ -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.",
|
||||
|
|
Loading…
Reference in a new issue