From 11d8c140541bbec866ee7603347376c6e8863092 Mon Sep 17 00:00:00 2001 From: lovetox Date: Tue, 25 Aug 2020 16:12:27 +0200 Subject: [PATCH] [plugin_installer] Port to new Settings API --- plugin_installer/utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugin_installer/utils.py b/plugin_installer/utils.py index ab70da4..a199738 100644 --- a/plugin_installer/utils.py +++ b/plugin_installer/utils.py @@ -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