Skip to content

Commit

Permalink
Finally fixes auto-update feature
Browse files Browse the repository at this point in the history
  • Loading branch information
yan committed Jan 7, 2021
1 parent f676a04 commit 89a9830
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions addon/globalPlugins/translate/__init__.py
Expand Up @@ -358,6 +358,9 @@ def onTimer(self):
filepath = evt.get("download", None)
if filepath is not None:
import addonHandler
for prev in addonHandler.getAvailableAddons():
if prev.name == updater.ADDON_NAME:
prev.requestRemove()
bundle = addonHandler.AddonBundle(filepath)
addonHandler.installAddonBundle(bundle)
logHandler.log.info("Installed version %s, restart NVDA to make the changes permanent" %(evt["version"]))
Expand Down
2 changes: 1 addition & 1 deletion buildVars.py
Expand Up @@ -20,7 +20,7 @@
"addon_description" : _("""Uses the Google Translate API to translate each spoken text to the desired language, on the fly.
This add-on requires an internet connection."""),
# version
"addon_version" : "2021.01.2",
"addon_version" : "2021.01.3",
# Author(s)
"addon_author" : u"Yannick PLASSIARD <podcastcecitek@gmail.com>, Hxebolax",
# URL for the add-on documentation support
Expand Down

0 comments on commit 89a9830

Please sign in to comment.