2016-03-04, 22:51
(2016-03-04, 21:49)BobCratchett Wrote: Going back to where this discussion came in - https://github.com/BigNoid/script.skinsh...s/pull/160 adds a new <visibleoverride />. Docs are included, and example usage is:-
Code:<visibleoverride condition="Library.HasContent(Movies)">Notification(Testing,You don't have any movies)</visibleoverride>
Testing that it works and confirmation that it does what is required would be appreciated
Code:
<item id="12">
<property name="id">$NUM[12]</property>
<label>$LOCALIZE[342]</label>
<label2>Allgemeiner Menü Eintrag</label2>
<icon>DefaultMovies.png</icon>
<thumb />
<property name="labelID">movies--0</property>
<property name="defaultID">movies</property>
<property name="translatedPath">ActivateWindow(Videos,videodb://movies/titles/,return)</property>
<onclick>ActivateWindow(Videos,videodb://movies/titles/,return)</onclick>
<property name="path">ActivateWindow(Videos,videodb://movies/titles/,return)</property>
<property name="list">videodb://movies/titles/</property>
<visible>StringCompare(System.ProfileName,Master user)</visible>
<property name="submenuVisibility">movies-0</property>
<property name="group">mainmenu</property>
<property name="hasSubmenu">True</property>
</item>
That was fast. Tested it and the <visible>Library.HasContent(Movies)</visible> is completely gone. No matter if I add this override option or not. So I guess somethin' is not working.