Visibility condition question
#1
I'm trying to reduce the visibility checks XBMC has to make but would like to know how it works for conditions inside other conditions.

ie

PHP Code:
<control type="group>
    <visible>Container.Content(episodes)</visible>
    ...
    <control type="
group">
        <visible>Skin.HasSettings(ShowRuntimes)</visible>
    ...
    </control>
</control> 

Does XBMC ignore the 'ShowRuntimes' condition when the container doesn't contain episodes or is that still checked even though it wont be shown?

Thanks.
Reply
#2
Currently, no it doesn't. The UpdateVisibility for the group is done during the group's render function.

With some patches in topfs2's GSoC branch, it will move to a separate function but I believe it still won't be evaluated, so in either case you're good.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
In that case would it be more efficient to separate out to new views (with just the one visibility condition) than have a view full of visibility conditions?

EDIT: Nevermind, I found out myself by trying it and it is better.
Reply

Logout Mark Read Team Forum Stats Members Help
Visibility condition question0