Posts: 142
Joined: May 2017
Reputation:
2
... I could do this in Krypton. I have a skin that calls ActivateWindow(tvguide) from the OSD, but I notice it no longer works in Leia. Is this new intended behaviour? None of the MyPVR* windows will do this. The DialogPVRChannelGuide, DialogPVRChannelsOSD, etc. work fine, but I can't see anything special about them just looking at the XML.
HDHomerun Quatro, RaspPi/TVHeadend, NUC/Win10/Kodi, Mousetuary skin, Mouse on couch!
Posts: 142
Joined: May 2017
Reputation:
2
yes I had the close in there already, so it isn't that - I'm not sure why it works for the DialogPVR* windows but not for the MyPVR* ones. Is it something special about them in Kodi itself that makes them called like modal dialogs, or is it controllable in the skin?
(Worst comes to worst I'll cut-n-paste all the contents of MyPVRGuide and shove it into DialogPVRChannelGuide - haven't tried that yet tho)
HDHomerun Quatro, RaspPi/TVHeadend, NUC/Win10/Kodi, Mousetuary skin, Mouse on couch!
Posts: 142
Joined: May 2017
Reputation:
2
2018-11-02, 09:43
(This post was last modified: 2018-11-02, 09:50 by aegidius.)
(try again, lost my edit)
I used to have
<onclick>Dialog.Close(VideoOSD)</onclick>
<onclick>ActivateWindow(tvguide)</onclick>
which worked in krypton. If I substitute PVRChannelGuide for tvguide, it works in Leia. Curious why.
BTW I am NOT getting any errors of the form
Activate of window 'xxx' refused because there are active modal dialogs
in the kodi.log.
HDHomerun Quatro, RaspPi/TVHeadend, NUC/Win10/Kodi, Mousetuary skin, Mouse on couch!
Posts: 142
Joined: May 2017
Reputation:
2
Aha...
17:51:33.520 T:3748 INFO: Activate of window '10702' refused because there are active modal dialogs
when debug log is enabled. The VideoOSD window contains:
<window>
<onload>runscript(special://skin/extras/scripts/dynamicOSD.py)</onload>
<onunload>Action(Back)</onunload>
</window>
the real OSD is put up by the python script, which, among other things, does
display = DynamicOSD('VideoOSDControls.xml', 'special://skin/xml') # this is the XML for the OSD controls
display.doModal()
so it is a modal dialog. But I do close it before trying to activate tvguide:
<onclick>Dialog.Close(VideoOSD)</onclick>
<onclick>ActivateWindow(tvguide)</onclick>
Could it be a timing issue? And why do the DialogPVR* windows work?
HDHomerun Quatro, RaspPi/TVHeadend, NUC/Win10/Kodi, Mousetuary skin, Mouse on couch!
Posts: 142
Joined: May 2017
Reputation:
2
Success.
Dialog.Close(all) did the trick. Thanks for all help! See skin.mousetuary (Leia branch) for the result.
HDHomerun Quatro, RaspPi/TVHeadend, NUC/Win10/Kodi, Mousetuary skin, Mouse on couch!