Kodi Community Forum

Full Version: Close custom window on exit from fullscreen
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi!

I made a custom window that I call with XBMC.ActivateWindow(id) in keymap (FullscreenVideo).
This window can be called only when full-screen video is active. What I would like to do is that this window would close automatically when i exit full-screen video. Currently it stays visible.
I know it can be done inside xbmc code, but is there a way to close this window without touching xbmc code?
I tried to add <onunload>Dialog.Close(id)</onunload> to VideoFullScreen.xml, but it didn't work.

Any suggestions?
Have you tried Dialog.Close(ID,true)?
Well... It works!
I made a typo when I tried Dialog.Close(id). Smile

Tnx! Problem solved,