Kodi Community Forum
Solved Musicinformation userrating problem (need help) - 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: Solved Musicinformation userrating problem (need help) (/showthread.php?tid=277216)



Musicinformation userrating problem (need help) - scott967 - 2016-05-27

I was reworking DialogMusicInfo.xml to combine songinformation and musicinformation but I've run into a strange problem:

I had a list container with static content instead of discrete button controls for the application-controlled buttons (B6 refresh, B7 userrating, B10 thumb, B12 (songs) album info/ (music) fanart). The content items have <onclick>SendClick(x)</onclick> assigned to pass the click to the Kodi control.

The problem is with the content item I have for Userrating -- SendClick(7). When I click that, I get the Select dialog popup as expected, but at the same time the current directory changes from albums or songs (depending on where the info dialog was opened from) to music playlists. So after exiting the select dialog and then the info dialog I am in music playlists and have to go back to get back to where I was when I first opened the music or song info dialog.

Obviously this didn't happen in Jarvis so something changed.

Any ideas though I guess I could pull it out and just create a button id="7" (which works in Estuary of course)?

scott s.
.


RE: Musicinformation userrating problem (need help) - BigNoid - 2016-05-27

Add the window id, eg
Code:
SendClick(2001,7)
.
Not sure why this happens without the id though.


RE: Musicinformation userrating problem (need help) - ronie - 2016-05-28

https://github.com/xbmc/xbmc/pull/9884


RE: Musicinformation userrating problem (need help) - scott967 - 2016-05-28

Wow. Thanks guys for figuring out so fast and even pushing out a PR. Adding the window id did, indeed, fix it.


scott s.
.