v17 Settings, type action : open a specific end point of current addon
#1
Hello,

Is it possible somehow to tell settings to open a specific endpoint in my addon ? The latter does not work... /languages is an entry point in my plugin...
<setting id="select_language" type="action" label="32002" action="RunPlugin(plugin.yab.test, /languages)" option="close" />

Doable ?

Thanks.
Yann
Reply
#2
you'll likely need to use an ActivateWindow() action.

the easiest way to get the needed code is to add the endpoint to your favourites,
next open the favourites.xml file (found in the userdata folder) and search for the bit that looks like
ActivateWindow(10025,&quot;plugin://plugin.video.youtube/special/popular_right_now/&quot;,return)
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
#3
Hey,

Thanks i

Unfortunately, when I click, noting happens :
<setting id="select_language" type="action" label="32002" action="ActivateWindow(10025, plugin://plugin.yab.test/languages)" option="close" />

Logs says  nothing in fact...

Sad
Reply
#4
Frustrating. Favourite works like a charm, and not action from settings... Sad
Reply
#5
OK it's fixed using Container.Update Smile

Thanks
Reply
#6
off topic, sorry. can be deleted.
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Settings, type action : open a specific end point of current addon00