Hi guys,
I wrote a pretty simple and small addon that generates various context menu items when a string is highlighted.
The thing is once I exceed the number of 10 items, the menu is then moved to a submenu.
I need to avoid that…
So I’ve read the documentation and found:
// If more than this number of items are added to the context menu, all items
// overflow into a "Jetpack" submenu.
const OVERFLOW_THRESH_DEFAULT = 20;
const OVERFLOW_THRESH_PREF =
"extensions.addon-sdk.context-menu.overflowThreshold";
// The label of the overflow sub-xul:menu.
//
// TODO: Localize this.
const OVERFLOW_MENU_LABEL = "Test";
But when I add that to my code, it has no effect… The addons runs, but whether the value of 20 nor the label Test is kicking in.
I’m pretty new to this, if I’m doing an obvious mistake here please bare with me…
Appreciate any help!
Regards,
David