lad1337 / XDM

XDM: eXtendable Download Manager. Plugin based media collection manager.
xdm.lad1337.de
Other
203 stars 46 forks source link

Allow dynamic default value for ElementConfig items #155

Open pannal opened 10 years ago

pannal commented 10 years ago

When writing a Plugin containing ElementConfig I wasn't able to find an option to define a default value (if not specified before) for self._elementConfig items. I may be wrong, though.

I'd like to be able to set a default value for a config flag when the element config frame is opened with my plugin's _elementConfig. E.g.: call self._getElementConfigDefault(configName) on a plugin to retrieve the default value on opening of the element config.