Skip to content
Snippets Groups Projects
Commit 90d1ee31 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

[Dicson] remove plugin entry in global config when removing the plugin. Fixes #5918

parent 0899ab13
No related branches found
No related tags found
No related merge requests found
......@@ -117,6 +117,9 @@ class PluginManager(object):
def _create_plugin_entry_in_global_config(self, plugin):
gajim.config.add_per('plugins', plugin.short_name)
def _remove_plugin_entry_in_global_config(self, plugin):
gajim.config.del_per('plugins', plugin.short_name)
@log_calls('PluginManager')
def add_plugin(self, plugin_class):
'''
......@@ -519,6 +522,8 @@ class PluginManager(object):
self.deactivate_plugin(plugin)
rmtree(plugin.__path__, False, on_error)
self.plugins.remove(plugin)
if self._plugin_has_entry_in_global_config(plugin):
self._remove_plugin_entry_in_global_config(plugin)
def get_plugin_by_path(self, plugin_dir):
for plugin in self.plugins:
......
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