Skip to content

Commit

Permalink
Set wait cursor while installing plugin from ZIP
Browse files Browse the repository at this point in the history
  • Loading branch information
gacarrillor committed Sep 10, 2021
1 parent 1b1e80d commit d8f02f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/pyplugin_installer/installer.py
Expand Up @@ -649,6 +649,7 @@ def installFromZipFile(self, filePath):
keepTrying = False

if success:
QApplication.setOverrideCursor(Qt.WaitCursor)
updateAvailablePlugins()
self.processDependencies(pluginName)
loadPlugin(pluginName)
Expand All @@ -665,6 +666,7 @@ def installFromZipFile(self, filePath):
if startPlugin(pluginName):
settings.setValue('/PythonPlugins/' + pluginName, True)

QApplication.restoreOverrideCursor()
self.exportPluginsToManager()
msg = "<b>%s</b>" % self.tr("Plugin installed successfully")
else:
Expand Down

0 comments on commit d8f02f9

Please sign in to comment.