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):
|
def accept(self):
|
||||||
QDialog.accept(self)
|
QDialog.accept(self)
|
||||||
# create downloader thread
|
# create downloader thread
|
||||||
ret = download(self.mw, self.form.code.text())
|
txt = self.form.code.text().split()
|
||||||
if not ret:
|
for x in txt:
|
||||||
return
|
ret = download(self.mw, x)
|
||||||
data, fname = ret
|
if not ret:
|
||||||
self.mw.addonManager.install(data, fname)
|
return
|
||||||
self.mw.progress.finish()
|
data, fname = ret
|
||||||
showInfo(_("Download successful. Please restart Anki."))
|
self.mw.addonManager.install(data, fname)
|
||||||
|
self.mw.progress.finish()
|
||||||
|
tooltip(_("Download successful. Please restart Anki."), period=3000)
|
||||||
|
|
Loading…
Reference in a new issue