Kodi Community Forum
Any way to lock watched unwatched toggle? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67)
+--- Thread: Any way to lock watched unwatched toggle? (/showthread.php?tid=127633)



Any way to lock watched unwatched toggle? - Friscovi - 2012-04-03

Hi
Related to my previous post I'm modding my home.xml so that when we click on Videos the Hide watch toggle so turned off and then when we click on Movies or TV Shows it's turned back on. I've had limited success with the ToggleWatched command but it seem to just throw the radio button and so it easy to get them switch in the 'wrong' position. Is there any way to set the toggle to On and Off? What am I missing?

Thanks again



RE: Any way to lock watched unwatched toggle? - hellohello - 2012-07-28

Friscovi, did you ever solve this?


RE: Any way to lock watched unwatched toggle? - Hitcher - 2012-07-29

Add this to your home.xml

PHP Code:
<onload>Skin.Reset(HomeVideos)</onload

and this to the actual Videos button.

PHP Code:
<onclick>Skin.SetBool(HomeVideos)</onclick

Then add this to MyVideoNav.xml making sure you use a radiobutton for the actual button id=14.

PHP Code:
<onload condition="Skin.HasSetting(HomeVideos) + SubString(Control.GetLabel(14),*)">SendClick(14)</onload>
<
onload condition="!Skin.HasSetting(HomeVideos) + !SubString(Control.GetLabel(14),*)">SendClick(14)</onload