summaryrefslogtreecommitdiffstats
path: root/module/api
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-30 16:38:37 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-30 16:38:37 +0100
commit9b9ba2a20409486e6645e0429220447f84199cc7 (patch)
tree0848626e95da6cb850819ded944ef1220f76f42e /module/api
parentplugin chooser for settings (diff)
downloadpyload-9b9ba2a20409486e6645e0429220447f84199cc7.tar.xz
show active addons
Diffstat (limited to 'module/api')
-rw-r--r--module/api/ConfigApi.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/module/api/ConfigApi.py b/module/api/ConfigApi.py
index d5577f7c3..b2327eb9a 100644
--- a/module/api/ConfigApi.py
+++ b/module/api/ConfigApi.py
@@ -65,9 +65,13 @@ class ConfigApi(ApiComponent):
:rtype: list of PluginInfo
"""
# TODO: include addons that are activated by default
+ # TODO: multi user
data = []
+ active = [x.getName() for x in self.core.addonManager.activePlugins()]
for name, config, values in self.core.config.iterSections(self.user):
- if not values: continue
+ # skip unmodified and inactive addons
+ if not values and name not in active: continue
+
item = ConfigInfo(name, config.name, config.description,
self.core.pluginManager.getCategory(name),
self.core.pluginManager.isUserPlugin(name),