Quantcast
Channel: Kodi Community Forum - Service Add-ons
Viewing all articles
Browse latest Browse all 218

How to reload addon settings?

$
0
0
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.

Viewing all articles
Browse latest Browse all 218

Trending Articles