Kodi Community Forum

Full Version: how to hide bool
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
can i hide a bool in settings.xml ?
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
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
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.

visible="false"

is the way to go for me thanks guys