mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
Merge pull request #163 from ankitest/patch-7
Install addons by spaced list; showInfo -> tooltip
This commit is contained in:
commit
f483753b6c
1 changed files with 9 additions and 7 deletions
|
@ -165,10 +165,12 @@ class GetAddons(QDialog):
|
|||
def accept(self):
|
||||
QDialog.accept(self)
|
||||
# create downloader thread
|
||||
ret = download(self.mw, self.form.code.text())
|
||||
if not ret:
|
||||
return
|
||||
data, fname = ret
|
||||
self.mw.addonManager.install(data, fname)
|
||||
self.mw.progress.finish()
|
||||
showInfo(_("Download successful. Please restart Anki."))
|
||||
txt = self.form.code.text().split()
|
||||
for x in txt:
|
||||
ret = download(self.mw, x)
|
||||
if not ret:
|
||||
return
|
||||
data, fname = ret
|
||||
self.mw.addonManager.install(data, fname)
|
||||
self.mw.progress.finish()
|
||||
tooltip(_("Download successful. Please restart Anki."), period=3000)
|
||||
|
|
Loading…
Reference in a new issue