Kodi Community Forum
Odd condition behaviour with DialogSeekbar - 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: Odd condition behaviour with DialogSeekbar (/showthread.php?tid=126034)



Odd condition behaviour with DialogSeekbar - Sranshaft - 2012-03-20

I'm using the following to include conditions in the DialogSeekbar.xml and I'm witnessing some strange behaviour. I was hoping someone would be able to help me out a bit.

Code used:

Code:
<include condition="Player.HasVideo">OSD_Video_Header</include>
<include condition="Player.HasAudio">OSD_Music_Header</include>

The condition appears to only be checked once regardless if I switch from playing music to playing a video. If I reload the skin everything works properly until I switched to the opposite type of media.

My question: Is DialogSeekbar only loaded once upon XBMC's start and this is why I'm experiencing this issue? If so, is there a reason to have the window created / loaded if media is not currently playing?

Any help would be greatly appreciated. Smile


RE: Odd condition behaviour with DialogSeekbar - pieh - 2012-03-20

DialogSeekbar (and DialogBusy, DialogKaiToast, DialogMuteBag, DialogVolumeBar, Pointer) are loaded just once - this means they will resolve include conditions just once too. You will have to use visible conditions instead of conditional includes here.


RE: Odd condition behaviour with DialogSeekbar - Sranshaft - 2012-03-20

Thanks Pieh for the response. Good to know about the others as well. Smile


RE: Odd condition behaviour with DialogSeekbar - Sranshaft - 2012-03-20

Ugh. Nevermind, error was on my end. I've been staring at code for far too long tonight.