Skip to content
Browse files
In uninstallPlugin(), remove plugin's QSetting (inside group 'PythonP…
…lugins'), which says if a plugin is available
  • Loading branch information
gacarrillor authored and nyalldawson committed Aug 24, 2021
1 parent e4bb080 commit 926a1b61005336f7e41034e6a6f51016415c93a7
Showing with 7 additions and 2 deletions.
  1. +7 −2 python/pyplugin_installer/
@@ -95,11 +95,13 @@ def __init__(self):
msg.setText("%s <b>%s</b><br/><br/>%s" % ("Obsolete plugin:"), plugin["name"],"QGIS has detected an obsolete plugin that masks its more recent version shipped with this copy of QGIS. This is likely due to files associated with a previous installation of QGIS. Do you want to remove the old plugin right now and unmask the more recent version?")))
if not msg.result():
settings = QgsSettings()
plugin_is_active = settings.value("/PythonPlugins/" + key, False, type=bool)

# uninstall the update, update utils and reload if enabled
self.uninstallPlugin(key, quiet=True)
settings = QgsSettings()
if settings.value("/PythonPlugins/" + key, False, type=bool):
if plugin_is_active:
settings.setValue("/PythonPlugins/watchDog/" + key, True)
@@ -452,6 +454,9 @@ def uninstallPlugin(self, key, quiet=False):
iface.pluginManagerInterface().pushMessage("Plugin uninstalled successfully"), Qgis.Info)

settings = QgsSettings()
settings.remove("/PythonPlugins/" + key)

# ----------------------------------------- #
def addRepository(self):
""" add new repository connection """

0 comments on commit 926a1b6

Please sign in to comment.