how to hide bool
#1
can i hide a bool in settings.xml ?
Reply
#2
http://wiki.xbmc.org/index.php?title=Addon_Settings


Here's an example:
https://github.com/XBMC-Addons/service.s...ttings.xml

Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#3
What I meant was I know I can hide password texts

But I want a bool enabled/not enabled

To not show at all in settings so people can't see it
Reply
#4
https://github.com/amet/script.xbmc.subt...gs.xml#L23

and look at the line below

visible= "eq(-1,true)" enable="eq(-1,true)"

where -1 is line above

EDIT: or to just hide it, "visible= false" should be enough if you dont need to depend on any other setting
Reply
#5
This is what I use:

Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<settings>
    <category id="general" label="30000">
        <setting id="isMasterUser" type="bool" visible="false" default="false" />
        <setting id="defaultProfile" type="text" label="30001" visible="eq(-1,true)" />
        <setting type="lsep" label="30002" visible="eq(-2,false)" />
    </category>
</settings>

The isMasterUser boolean is hidden from the user. Depending on whether or not this value is true or false, either setting with label 30001 or setting with 30002 is shown to the user.

Reply
#6
visible="false"

is the way to go for me thanks guys
Reply

Logout Mark Read Team Forum Stats Members Help
how to hide bool0