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."),
|
||||
help="MediaSupport")
|
||||
return
|
||||
ui.utils.showInfo(ngettext("%d missing file found.<br>",
|
||||
"%d missing files found.<br>", res[0]) % res[0] +
|
||||
_("%d successfully retrieved.")
|
||||
% res[1], parent=self)
|
||||
if res[0] == True:
|
||||
# success
|
||||
msg = _("%d successfully retrieved.") % res[1]
|
||||
else:
|
||||
msg = _("Unable to download %s\nDownload aborted.") % res[1]
|
||||
ui.utils.showInfo(msg)
|
||||
|
||||
def addHook(self, *args):
|
||||
addHook(*args)
|
||||
|
|
Loading…
Reference in a new issue