v18 Container.SetViewMode and other gui related methods not working in onInit
#1
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
Reply


Messages In This Thread
Container.SetViewMode and other gui related methods not working in onInit - by malte - 2018-03-05, 08:53
Logout Mark Read Team Forum Stats Members Help
Container.SetViewMode and other gui related methods not working in onInit0