Kodi Community Forum

Full Version: Hijack favorites button on home, how to launch and close?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Ive hijacked the favorites button on the home page and copied the code from the shutdown button.

So now when you click the favorites button @ the bottom left i have my own little dialog that i then put custom option in (like system settings, and video settings)

the problem is when launching video calibration the dialog with my new options stays on top of the video settings window, im not so concerned about handling z-index but rather i want to close the dialog and just have video settings come up.

how would i go about launching and closing itself at the same time?
With 2 different <onclick> in the same button.
One to close what you want to close and one to open what you want to open.
ahhh 2 onclick's... i was wondering hows those worked

Perfect, thanks Mass