diff --git a/source/gui/addonGui.py b/source/gui/addonGui.py index dcaadb7232e..b5a8d5db53d 100644 --- a/source/gui/addonGui.py +++ b/source/gui/addonGui.py @@ -465,7 +465,7 @@ def installAddon(parentWindow, addonPath): prevAddon = None for addon in addonHandler.getAvailableAddons(): - if not addon.isPendingRemove and bundle.name==addon.manifest['name']: + if not addon.isPendingRemove and bundle.name.lower()==addon.manifest['name'].lower(): prevAddon=addon break if prevAddon: @@ -496,7 +496,6 @@ def installAddon(parentWindow, addonPath): wx.YES|wx.NO|wx.ICON_WARNING ) != wx.YES: return False - prevAddon.requestRemove() from contextlib import contextmanager @@ -525,6 +524,8 @@ def doneAndDestroy(window): # Use context manager to ensure that `done` and `Destroy` are called on the progress dialog afterwards with doneAndDestroy(progressDialog): gui.ExecAndPump(addonHandler.installAddonBundle, bundle) + if prevAddon: + prevAddon.requestRemove() return True except: log.error("Error installing addon bundle from %s" % addonPath, exc_info=True)