Kodi Community Forum
Submenu doesn't close on clicking custom item - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67)
+---- Forum: Arctic: Zephyr - Reloaded (https://forum.kodi.tv/forumdisplay.php?fid=221)
+---- Thread: Submenu doesn't close on clicking custom item (/showthread.php?tid=320063)



Submenu doesn't close on clicking custom item - tanGee - 2017-08-17

I use Zomboided's VPN manager service, and wanted to add a submenu item to display the VPN status. I added the following to userdata/addon_data/script.skinshortcuts/settings.DATA.xml:

Code:
<shortcut>
        <defaultID />
         <label>VPN Status</label>
        <label2>Custom item</label2>
        <icon>DefaultShortcut.png</icon>
        <thumb />
        <action>RunScript(special://home/addons/service.vpn.manager/infopopup.py, sysinfo)</action>
</shortcut>

The above works, but the submenu doesn't close when the popup appears. I tried adding a second action as follows:

Code:
<shortcut>
    <defaultID />
    <label>VPN Status</label>
    <label2>Custom item</label2>
    <icon>DefaultShortcut.png</icon>
    <thumb />
    <action>RunScript(special://home/addons/service.vpn.manager/infopopup.py, sysinfo)</action>
    <action>RunScript(script.skinshortcuts,type=hidesubmenu&amp;mainmenuID=9000)</action>
</shortcut>

But that doesn't help either. Am I missing something?