mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
abort download missing media early
This commit is contained in:
parent
e2644695cb
commit
ff022119c3
1 changed files with 6 additions and 4 deletions
|
@ -2945,10 +2945,12 @@ Consider backing up your media directory first."""))
|
||||||
ui.utils.showInfo(_("No media URLs defined for this deck."),
|
ui.utils.showInfo(_("No media URLs defined for this deck."),
|
||||||
help="MediaSupport")
|
help="MediaSupport")
|
||||||
return
|
return
|
||||||
ui.utils.showInfo(ngettext("%d missing file found.<br>",
|
if res[0] == True:
|
||||||
"%d missing files found.<br>", res[0]) % res[0] +
|
# success
|
||||||
_("%d successfully retrieved.")
|
msg = _("%d successfully retrieved.") % res[1]
|
||||||
% res[1], parent=self)
|
else:
|
||||||
|
msg = _("Unable to download %s\nDownload aborted.") % res[1]
|
||||||
|
ui.utils.showInfo(msg)
|
||||||
|
|
||||||
def addHook(self, *args):
|
def addHook(self, *args):
|
||||||
addHook(*args)
|
addHook(*args)
|
||||||
|
|
Loading…
Reference in a new issue