ListItem.IsSelected bug?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
pecinko Offline
Member+
Posts: 3,032
Joined: Dec 2008
Reputation: 27
Location: Prague / Belgrade
Post: #1
ListItem.IsSelected

does not work for me. I have to use

<visible>StringCompare(ListItem.Label,MusicPlayer.Album)</visible>
or <visible>StringCompare(ListItem.Label,VideoPlayer.Title)</visible>

... depending on container.content instead. Can anyone confirm before I trac it?

My skins:

Quartz
Amber
find quote
`Black Offline
Skilled Skinner
Posts: 2,024
Joined: Apr 2009
Reputation: 50
Location: Germany
Post: #2
You have to use ListItem.IsPlaying... should work for movies, episodes & songs.

[Image: xp1080-21.png]
find quote
pecinko Offline
Member+
Posts: 3,032
Joined: Dec 2008
Reputation: 27
Location: Prague / Belgrade
Post: #3
Thanks for the tip. Do you happen to know what's the difference between these 2:

ListItem.IsPlaying Returns whether the current ListItem.* info labels and images are currently Playing media
ListItem.IsSelected Returns whether the current ListItem is selected (f.e. currently playing in playlist window)

My skins:

Quartz
Amber
find quote
`Black Offline
Skilled Skinner
Posts: 2,024
Joined: Apr 2009
Reputation: 50
Location: Germany
Post: #4
No idea... maybe IsSelected is obsolete and that's the reason why it's not working anymore.

[Image: xp1080-21.png]
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,523
Joined: Oct 2003
Reputation: 138
Post: #5
IsSelected typically means it's highlighted for some reason (eg is the focused item for the context menu). I don't think there's many places you'd want to use it other that perhaps in the filemanager.

IIRC it's all done of the <selectedcolor> you specify in labels - i.e. you probably don't need to use ListItem.IsSelected anywhere.

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: badge.gif]
find quote
pecinko Offline
Member+
Posts: 3,032
Joined: Dec 2008
Reputation: 27
Location: Prague / Belgrade
Post: #6
OK, thanks for explanation.

My skins:

Quartz
Amber
find quote