Odd condition behaviour with DialogSeekbar

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Sranshaft Offline
Posting Freak
Posts: 1,427
Joined: Dec 2008
Reputation: 24
Location: Melbourne, Australia
Post: #1
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

[Image: all-thin-fanart.jpg]
find quote
pieh Offline
Team-Kodi Member
Posts: 672
Joined: Aug 2010
Reputation: 13
Location: Poland
Post: #2
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.

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

My previous forum/trac nickname: grajen3
(This post was last modified: 2012-03-20 11:13 by pieh.)
find quote
Sranshaft Offline
Posting Freak
Posts: 1,427
Joined: Dec 2008
Reputation: 24
Location: Melbourne, Australia
Post: #3
Thanks Pieh for the response. Good to know about the others as well. Smile

[Image: all-thin-fanart.jpg]
find quote
Sranshaft Offline
Posting Freak
Posts: 1,427
Joined: Dec 2008
Reputation: 24
Location: Melbourne, Australia
Post: #4
Ugh. Nevermind, error was on my end. I've been staring at code for far too long tonight.

[Image: all-thin-fanart.jpg]
(This post was last modified: 2012-03-20 18:11 by Sranshaft.)
find quote