Skip to content
Permalink
Browse files
In installFromZipFile(), if plugin was active, no need to call startP…
…lugin() before reloading it. This commit makes installFromZipFile() act like installPlugin().
  • Loading branch information
gacarrillor authored and nyalldawson committed Aug 24, 2021
1 parent 926a1b6 commit a31af8b77a2b3639afed9fe10e45fd57d4a0de4d
Showing with 3 additions and 4 deletions.
  1. +3 −4 python/pyplugin_installer/installer.py
@@ -655,10 +655,9 @@ def installFromZipFile(self, filePath):
plugins.getAllInstalled()
plugins.rebuild()

if settings.contains('/PythonPlugins/' + pluginName):
if settings.value('/PythonPlugins/' + pluginName, False, bool):
startPlugin(pluginName)
reloadPlugin(pluginName)
if settings.contains('/PythonPlugins/' + pluginName): # Plugin was available?
if settings.value('/PythonPlugins/' + pluginName, False, bool): # Plugin was also active?
reloadPlugin(pluginName) # unloadPlugin + loadPlugin + startPlugin
else:
unloadPlugin(pluginName)
loadPlugin(pluginName)

0 comments on commit a31af8b

Please sign in to comment.