2013-04-06, 10:21
We can only expose CONTEXT_BUTTON enum values (integer constants) to plugin (translated-label can be different on same context action depending on some conditions and we don't have command stored as builtin action - we are handling actions based on CONTEXT_BUTTON value)
So we could do something like (which is white list method I mentioned in earlier post):
We can't really combine custom context menu entries with builtin ones - they are incompatible.
So we could do something like (which is white list method I mentioned in earlier post):
Code:
listitem.addContextMenuItems(contextMenuTuple, replaceItems=True)
listItem.addStandardContextMenuItems([CONTEXT_BUTTON_ADD_FAVOURITE, MORE_CONTEXT_BUTTONS_HERE])