2016-05-23, 18:00
Dear all,
I just use a python script to create a Video addon in which I have full control over the user input event. Therefore I create a class inheriting the class xbmcgui.WindowXML.
Then in the main body of the script, I just call the DoModal() to display my main window and to perform task of my addon.
The problem is that anytime I activate my addon via RPC call, Kodi will create a new window for my Addon.
How can check whether there is already opened window and I can reuse that one instead of creating a new one.
Many thanks
I just use a python script to create a Video addon in which I have full control over the user input event. Therefore I create a class inheriting the class xbmcgui.WindowXML.
Then in the main body of the script, I just call the DoModal() to display my main window and to perform task of my addon.
The problem is that anytime I activate my addon via RPC call, Kodi will create a new window for my Addon.
How can check whether there is already opened window and I can reuse that one instead of creating a new one.
Many thanks