2017-12-30, 11:14
Hi,
I have some trouble to get my addon (Rom Collection Browser) working with new Kodi version Leia.
There seems to be a change in the behaviour of the built-in container in WindowXML. When I add items directly to the built-in container via "self.addItem(listitem)", the list is not shown in my ui. When I add items to my list control via "self.getControl(50).addItem(listitem)", the list is shown again. (I am using the built-in container because I want to be able to provide different viewtypes.)
I have seen the "Changes to the python API" thread and know about the new "setContent()"-method and that I should use "isMedia" in the constructor of my WindowXML. But all this does not solve my issue, so I seem to be missing something.
I have created a simple test script to reproduce this behaviour:
Test script
This script is working fine with Krypton but does not work with Leia. Can somebody give me a hint how I have to modify the script or the skin file to get the built-in list working with Leia?
Best regards
Malte
I have some trouble to get my addon (Rom Collection Browser) working with new Kodi version Leia.
There seems to be a change in the behaviour of the built-in container in WindowXML. When I add items directly to the built-in container via "self.addItem(listitem)", the list is not shown in my ui. When I add items to my list control via "self.getControl(50).addItem(listitem)", the list is shown again. (I am using the built-in container because I want to be able to provide different viewtypes.)
I have seen the "Changes to the python API" thread and know about the new "setContent()"-method and that I should use "isMedia" in the constructor of my WindowXML. But all this does not solve my issue, so I seem to be missing something.
I have created a simple test script to reproduce this behaviour:
Test script
This script is working fine with Krypton but does not work with Leia. Can somebody give me a hint how I have to modify the script or the skin file to get the built-in list working with Leia?
Best regards
Malte