2013-12-19, 13:29
Hello everyone,
I'm trying to make XBMC reset a certain setting to a "default" value each time it starts.
Ok, so i made a custom setting type bool, by adding the following line in guisettings.xml
I retrieve/set it using the following built-in functions:
Thing is i want this setting to always be false on a fresh start and then i change it according to my needs inside the skin.
Right now if i happen to close xbmc while this setting is true, the next start-up the initial value will be true.
Is there anyway i could tell xbmc to have an initial value of a certain setting on startup ?
Thanks.
I'm trying to make XBMC reset a certain setting to a "default" value each time it starts.
Ok, so i made a custom setting type bool, by adding the following line in guisettings.xml
Code:
<setting type="bool" name="skin.confluence.setting_name">false</setting>
I retrieve/set it using the following built-in functions:
Code:
Skin.SetBool(setting_name) #Set to true
Skin.Reset(setting_name) #Set to false
Skin.HasSetting(setting_name) #Retrieve it
Thing is i want this setting to always be false on a fresh start and then i change it according to my needs inside the skin.
Right now if i happen to close xbmc while this setting is true, the next start-up the initial value will be true.
Is there anyway i could tell xbmc to have an initial value of a certain setting on startup ?
Thanks.