Commit 2f1f9e65 authored by Markus Wintermann's avatar Markus Wintermann Committed by Philipp Hörist

[plugin_installer] Remove plugin on reload

parent 9e4edea6
......@@ -292,7 +292,13 @@ class PluginInstaller(GajimPlugin):
is_active = True
log.info('Deactivate Plugin: %s', plugin)
app.plugin_manager.deactivate_plugin(plugin)
app.plugin_manager.plugins.remove(plugin)
if hasattr(app.plugin_manager, 'uninstall_plugin'):
# check if we are running a new version of gajim. Check
# uninstall because remove_plugin existed before
app.plugin_manager.remove_plugin(plugin)
else:
app.plugin_manager.plugins.remove(plugin)
model = self.installed_plugins_model
for row in range(len(model)):
......
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