Has <onunload>ActivateWindow Gone?
#1
"<onunload>ActivateWindow(home)</onunload>"

Just isn't working for me in the nightly builds, Has "ActivateWindow" function from onunload been removed?

Thanks
Reply
#2
perhaps because you have a dialog open at the same time?
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#3
Yes I do, I need to active the home window after a library scan.

Popping "<onunload>ActivateWindow(home)</onunload>" in DialogExtendedProgressBar.xml used to do the trick.

Please can you tell me how i can achieve this now?

Thanks
Reply
#4
This is because there is now a check for modal dialogs before trying to activate the window, see here

http://trac.kodi.tv/ticket/15960

In my opinion it has been implemented badly and what you are getting is yet another issue caused by this.

You can try closing all dialogs before your call to ActivateWindow using

executebuiltin('Dialog.Close(all, force)')

Actually since your in an XML you probably just need Dialog.Close(all,force)

And maybe add your findings to the trac ticket.
Reply
#5
Thanks spoyser

Adding "<onunload>Dialog.Close(all,force)</onunload>"

Did the trick.
Reply

Logout Mark Read Team Forum Stats Members Help
Has <onunload>ActivateWindow Gone?0