Kodi Community Forum
visible if watchmode is on? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: visible if watchmode is on? (/showthread.php?tid=54242)



visible if watchmode is on? - pilluli - 2009-07-08

Hi,

I'm trying to make a label visible only if the "hide watched" mode is on. Is it possible? I'm trying something like:

Code:
<visible>system.getbool(myvideos.watchmode)</visible>

but doesn't work:

Code:
DEBUG: Error: Requested setting (myvideos.watchmode) was not found.  It must be case-sensitive

any ideas?


- jmarshall - 2009-07-09

I don't believe it's available. It's not a guisetting per-se - it's stored in CSettings instead.

A patch would be welcome. I believe there's a function in the HTTP-API that may already read these, so some unification could be in order.

Cheers,
Jonathan


- pilluli - 2009-07-11

jmarshall Wrote:I don't believe it's available. It's not a guisetting per-se - it's stored in CSettings instead.

A patch would be welcome. I believe there's a function in the HTTP-API that may already read these, so some unification could be in order.

Cheers,
Jonathan

Thanks Jonathan, I'll try to make a patch. Actually, one of my main problems doing XBMC patches is when I have to do unifications, never know where to put the unified code (as static, in utils, Huh) Laugh

Do you think an infolabel such as "System.HideWatched" would be ok?

regards,


- jmarshall - 2009-07-11

I think I'd prefer System.Setting(HideWatched) or something similar - that way we can extend it later as necessary.

Cheers,
Jonathan


- pilluli - 2009-07-12

Hi Jonathan,

I've implemented the option to get System.Setting(HideWatched) from skins. The patch is in this ticket. Let me know if you think it is ok. Here it seems to work. Oo

regards,