mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
Fix misleading warning after upgrading unloaded plugin
This commit is contained in:
parent
4ad7924119
commit
4afabb0225
@ -370,14 +370,13 @@ class QgsPluginInstaller(QObject):
|
||||
settings = QgsSettings()
|
||||
settings.setValue("/PythonPlugins/" + plugin["id"], True)
|
||||
else:
|
||||
infoString = (self.tr("Plugin reinstalled successfully"), "")
|
||||
if pluginWasLoaded:
|
||||
loadPlugin(plugin["id"])
|
||||
startPlugin(plugin["id"])
|
||||
infoString = (self.tr("Plugin reinstalled successfully"), "")
|
||||
else:
|
||||
unloadPlugin(key) # Just for a case. Will exit quietly if really not loaded
|
||||
loadPlugin(key)
|
||||
infoString = (self.tr("Plugin reinstalled successfully"), self.tr("Python plugin reinstalled.\nYou need to restart QGIS in order to reload it."))
|
||||
if quiet:
|
||||
infoString = (None, None)
|
||||
QApplication.restoreOverrideCursor()
|
||||
|
Loading…
x
Reference in New Issue
Block a user