2016-02-14, 21:40
Okay, I am trying to set the visibility of a context menu addon based on a window property.
So I am setting the window property like this:
and clearing it:
That is all fine, what I then want is to base the visibilty of my context menu addon on this setting, I was hoping something like this would work:
or maybe
But no joy
Any ideas would be most appreciated.
So I am setting the window property like this:
Code:
xbmcgui.Window(10000).setProperty('SF_MENU_ENABLED', 'True')
and clearing it:
Code:
xbmcgui.Window(10000).clearProperty('SF_MENU_ENABLED')
That is all fine, what I then want is to base the visibilty of my context menu addon on this setting, I was hoping something like this would work:
Code:
<visible>StringCompare($INFO[Window(10000).Property(SF_MENU_ENABLED)],True)</visible>
or maybe
Code:
<visible>StringCompare(Window(10000).Property(SF_MENU_ENABLED),True)</visible>
But no joy
Any ideas would be most appreciated.