Skip to content
Snippets Groups Projects
Commit 36293b6e authored by Philipp Hörist's avatar Philipp Hörist
Browse files

[plugin_installer] Check before updating the available page

Fixes #508
parent a6267273
No related branches found
No related tags found
No related merge requests found
......@@ -211,7 +211,9 @@ class PluginInstaller(GajimPlugin):
activated = app.plugin_manager.update_plugins(
replace=False, activate=True, plugin_name=plugin.short_name)
if activated:
self._available_page.update_plugin(plugin)
if self._available_page is not None:
self._available_page.update_plugin(plugin)
else:
self._needs_restart = True
log.info('Plugin %s needs restart', plugin.name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment