Bug [HELIX] Function activateWindow() not working in myvideonav.xml
#1
Hi all,

Platform: OSX, Build: Helix A4.

I'm updating the Maximinimalism skin for Helix and noticed that the activatewindow function no longer works from myvideonav.xml.

For example, the following fails to redirect to the movie titles node:
Code:
<onclick>ActivateWindow(Videos,MovieTitles,return)</onclick>

Has a deliberate change been made somewhere, or is this a bug?
Bitcoin donations: 1Hvo9rWzhAVbuPrshgaGZaD7qcLFTCPuiv
[Skin] Pellucid
[Skin] Maximinimalism
Reply
#2
It changed for Gotham -

Code:
<onclick>ActivateWindow(Videos,videodb://movies/titles/)</onclick>

http://wiki.xbmc.org/?title=Opening_Windows_and_Dialogs
Reply
#3
Thanks Hitcher. Still doesn't work though!
Bitcoin donations: 1Hvo9rWzhAVbuPrshgaGZaD7qcLFTCPuiv
[Skin] Pellucid
[Skin] Maximinimalism
Reply
#4
You're right it doesn't work and you can't load musicnav from the music library.

Testing seems to point to the problem being you can't load a window you're already in but it definitely worked in Gotham.

This really needs fixing before Helix is released.
Reply
#5
Thanks Hitcher - my skin would be totally stuffed without it!
Bitcoin donations: 1Hvo9rWzhAVbuPrshgaGZaD7qcLFTCPuiv
[Skin] Pellucid
[Skin] Maximinimalism
Reply
#6
please create a ticket on trac for it
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#7
PR 5081 is what caused it.
Reply
#8
Trac ticket #15414 mentions the issue.
Bitcoin donations: 1Hvo9rWzhAVbuPrshgaGZaD7qcLFTCPuiv
[Skin] Pellucid
[Skin] Maximinimalism
Reply
#9
i've checked our built-in functions and Container.Update(<path>) should do the trick.

it updates the current listing with the given path which internally sends the message GUI_MSG_UPDATE and this calls the Update() method of CGUIMediaWindow.

@thedeadman could you please use this built-in instead

Code:
<onclick>Container.Update(videodb://movies/titles/)</onclick>
Reply
#10
Going to be a bit of a pain to code for skins that use global navigation because <onclick>Container.Update(videodb://movies/titles/)</onclick> isn't going to work if you're not in the video library.

Can't the 'don't activate an already active window' code check the current window and path isn't the same as the opening window and path?
Reply
#11
should be fixed with https://github.com/xbmc/xbmc/pull/5490, but not merged yet
Reply
#12
Many thanks. Smile
Reply
#13
Thanks all :-)
Bitcoin donations: 1Hvo9rWzhAVbuPrshgaGZaD7qcLFTCPuiv
[Skin] Pellucid
[Skin] Maximinimalism
Reply

Logout Mark Read Team Forum Stats Members Help
[HELIX] Function activateWindow() not working in myvideonav.xml0