merge new keys from config.json into user conf
This commit is contained in:
parent
9fb9d9c902
commit
5a11efa0e3
@ -208,10 +208,15 @@ When loading '%(name)s':
|
|||||||
|
|
||||||
def getConfig(self, module):
|
def getConfig(self, module):
|
||||||
addon = module.split(".")[0]
|
addon = module.split(".")[0]
|
||||||
|
# get default config
|
||||||
|
config = self.addonConfigDefaults(addon)
|
||||||
|
if config is None:
|
||||||
|
return None
|
||||||
|
# merge in user's keys
|
||||||
meta = self.addonMeta(addon)
|
meta = self.addonMeta(addon)
|
||||||
if meta.get("config"):
|
userConf = meta.get("config", {})
|
||||||
return meta["config"]
|
config.update(userConf)
|
||||||
return self.addonConfigDefaults(addon)
|
return config
|
||||||
|
|
||||||
def configAction(self, addon):
|
def configAction(self, addon):
|
||||||
return self._configButtonActions.get(addon)
|
return self._configButtonActions.get(addon)
|
||||||
|
Loading…
Reference in New Issue
Block a user