Assume I have a addon. In that setting
<setting label="Test" type="text" id="test" default="Testing" />
Like this have. I want this to prevent from editing by user. Can I hide it? Or lock it?
I need that value to get using addon so I need that setting
Why make it a setting if you don't want it set by the user?
(2017-08-10, 12:07)nickr Wrote: [ -> ]Why make it a setting if you don't want it set by the user?
Sir in my addon it getting some info from server and adding to the settings. I remember one of the addon got this hidden thing :/
(2017-08-10, 11:49)bloodhod Wrote: [ -> ]Assume I have a addon. In that setting
<setting label="Test" type="text" id="test" default="Testing" />
Like this have. I want this to prevent from editing by user. Can I hide it? Or lock it?
I need that value to get using addon so I need that setting
Hello,
I remember seeing the option here:
http://kodi.wiki/view/Add-on_settings.
I think, you simply set the attribute
visible to
false
i.e. <setting label="Test" type="text" id="test" default="Testing"
visible = false/> .
This should allow you to preset a value but hide the setting option itself from a user i think.