2018-03-05, 08:53
Hi,
I still have some issues to get my script using WindowXML and the builtin list to work with Kodi Leia. My WindowXML defines several views and the addon saves the last selected view in addon settings. On next load the addon should select this view using "Container.SetViewMode()". This works fine in Krypton and older versions but does not in Leia. Other methods like self.SetFocus() also don't work anymore when called in onInit. When I put the same calls in an onClick-Event of a button, they work as expected.
I created a simple test script to demonstrate the behaviour: dropbox link.
I think that I have covered all the new stuff like isMedia and setContent but I am still missing something. Any tips how to solve this issue?
Regards
Malte
I still have some issues to get my script using WindowXML and the builtin list to work with Kodi Leia. My WindowXML defines several views and the addon saves the last selected view in addon settings. On next load the addon should select this view using "Container.SetViewMode()". This works fine in Krypton and older versions but does not in Leia. Other methods like self.SetFocus() also don't work anymore when called in onInit. When I put the same calls in an onClick-Event of a button, they work as expected.
I created a simple test script to demonstrate the behaviour: dropbox link.
I think that I have covered all the new stuff like isMedia and setContent but I am still missing something. Any tips how to solve this issue?
Regards
Malte