Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
Submenu doesn't close on clicking custom item
#1
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?
Reply

Logout Mark Read Team Forum Stats Members Help
Submenu doesn't close on clicking custom item0