Commit c91e8bdd authored by Philipp Hörist's avatar Philipp Hörist

[plugin_installer] Check before updating the available page

Fixes #508
parent 529e9110
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment