Posts: 1,650
Joined: Jan 2010
Reputation:
138
malte
Skilled Python Coder
Posts: 1,650
Since Dharma RC1 (first version where I noticed this) I can't use the "Change View" button in a script addon anymore. It fires an onClick-event but nothing happens.
I checked if there is a bug in my addon (Rom Collection Browser) but I am quite sure that it is a change in XBMC. Anybody else noticed this or knows if there have been changes and how to solve this?
Regards,
malte
Posts: 26,215
Joined: Oct 2003
Reputation:
187
2010-11-30, 03:35
(This post was last modified: 2010-11-30, 03:40 by jmarshall.)
Hi there,
Yes, this is a known issue. I'm pondering the best way to fix. Ideally XBMC would handle the viewas button itself and wouldn't even send on the click to the script. Would that work for you? I've committed this to trunk in r35534 - will test your script and backport to Dharma if everything works.
The less ideal solution is to do what we did before - XBMC will handle the button itself AND send the click to the script.
Cheers,
Jonathan
Posts: 26,215
Joined: Oct 2003
Reputation:
187
I got the script working, thanks - it's already been backported ready for Dharma RC2 (and final).
BTW: checking for revision doesn't work with debug builds on win32 - just for future reference (you check rev in the script)
Cheers,
Jonathan
Posts: 1,650
Joined: Jan 2010
Reputation:
138
malte
Skilled Python Coder
Posts: 1,650
Thanks! For the fix and the hint. I think I have to change (or remove) the complete compatibility code anyway.