[plugin_installer] Port to new Settings API

This commit is contained in:
lovetox
2020-08-25 16:12:27 +02:00
parent 2c83bd4725
commit 11d8c14054

View File

@@ -101,7 +101,11 @@ class PluginInfo:
# PluginManager. Look in the Gajim config if the plugin is
# known and active, if yes load the manifest from the Plugin
# dir and parse the version
active = app.config.get_per('plugins', self.short_name, 'active')
plugin_settings = app.settings.get_plugins()
if self.short_name not in plugin_settings:
return None
active = app.settings.get_plugin_setting(self.short_name, 'active')
if not active:
return None