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

fix: Plugins: Unregister modules after calling deactivate()

parent f43aeeb5
No related branches found
No related tags found
No related merge requests found
......@@ -543,10 +543,12 @@ def deactivate_plugin(self, plugin: GajimPlugin) -> None:
self._remove_events_handler_from_ged(plugin)
self._remove_name_from_encryption_plugins(plugin)
self._unregister_modules_with_handlers(plugin)
# removing plug-in from active plug-ins list
# deactivate() must be before _unregister_modules_with_handlers(),
# because plugin.deactivate() may want to use the module
plugin.deactivate()
self._unregister_modules_with_handlers(plugin)
self.active_plugins.remove(plugin)
app.settings.set_plugin_setting(plugin.manifest.short_name,
'active',
......
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