Hello,
In my Addon i use the method onSettingsChanged. The method will be correct invoked but i get the old values from getSetting, though i changed the values in the configuration-dialog. Only if i restart KODI, i get the new values. However the file self 'settings.xml' respect the change immediately. My question is, how can i force to reload the settings?
Example:
def onSettingsChanged(self):
xbmc.log('Settings changed', xbmc.LOGDEBUG)
curVal = xbmcaddon.Addon().getSetting('myValue')
xbmc.log('Current Value: %s' % curVal, xbmc.LOGDEBUG)
Thanks for any help.
In my Addon i use the method onSettingsChanged. The method will be correct invoked but i get the old values from getSetting, though i changed the values in the configuration-dialog. Only if i restart KODI, i get the new values. However the file self 'settings.xml' respect the change immediately. My question is, how can i force to reload the settings?
Example:
def onSettingsChanged(self):
xbmc.log('Settings changed', xbmc.LOGDEBUG)
curVal = xbmcaddon.Addon().getSetting('myValue')
xbmc.log('Current Value: %s' % curVal, xbmc.LOGDEBUG)
Thanks for any help.