Kodi Community Forum

Full Version: <onfocus>Skin.Reset(test)</onfocus> not working?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

Odd bool behaviour, Isengard.

For condition Skin.HasSetting(ShowControls),

In button, this line does absolutely nothing:
<onfocus>Skin.Reset(ShowControls)</onfocus>

but these two works as expected:
<onfocus>Skin.SetBool(ShowControls)</onfocus>
<onfocus>Skin.ToggleSetting(ShowControls)</onfocus>

Reset should force a bool to false, and work in a button onfocus, right?

Assuming yes, and finding it hard to believe that this is a bug since this assumingly is a very used functionality:
What could be wrong?
I might have accidentally set it to a string once. Perhaps it keeps believing that it is supposed to be a string (even though the setbool works nicely)?
Anyways, as a workaround until I get more skilled is to use the togglesetting with a "true" conditional test