How to manage ContextMenuItems?
#1
Due i have done the My Favorite by myself.


Image


From the picture, you will see "Add To My Favorite" that i have developed in my add-on but i need to cut "Add to favorite" and "Add-on setting" out from list contextMenuItem

How can i do it Huh
Reply
#2
set replaceItems to True in addContextMenuItems(...)
http://mirrors.xbmc.org/docs/python-docs...tMenuItems
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
Oh!!!! i got it, Thank you very much
Reply
#4
something like this:
Code:
listitem.addContextMenuItems([('Add to My Favourite', 'XBMC.RunScript(your.script.id)',)], replaceItems=True)
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

Logout Mark Read Team Forum Stats Members Help
How to manage ContextMenuItems?0