Update codes for new Multiple Tab Handler
This commit is contained in:
parent
95d36e08cf
commit
b6f36402c3
@ -67,13 +67,13 @@
|
||||
label="&selection.removeTabSubtree.label;"
|
||||
accesskey="&selection.removeTabSubtree.accesskey;"
|
||||
oncommand="TreeStyleTabService.removeTabSubtree(MultipleTabService.getSelectedTabs());"
|
||||
multipletab-available="selectedTabs.length"/>
|
||||
multipletab-available="any-selected"/>
|
||||
<menuitem id="multipletab-selection-item-createSubtree"
|
||||
insertafter="multipletab-selection-splitWindow"
|
||||
label="&selection.createSubtree.label;"
|
||||
accesskey="&selection.createSubtree.accesskey;"
|
||||
oncommand="TreeStyleTabService.createSubtree(MultipleTabService.getSelectedTabs());"
|
||||
multipletab-enabled="TreeStyleTabService.canCreateSubtree(selectedTabs)"/>
|
||||
multipletab-enabled="can-create-subtree"/>
|
||||
</menupopup>
|
||||
|
||||
<popupset id="mainPopupSet">
|
||||
|
@ -99,6 +99,18 @@ var TreeStyleTabWindowHelper = {
|
||||
};
|
||||
|
||||
this.overrideExtensionsPreInit(); // windowHelperHacks.js
|
||||
|
||||
|
||||
if ('MultipleTabService' in window &&
|
||||
Array.isArray(MultipleTabService.showHideMenuItemsConditionsProviders)) {
|
||||
MultipleTabService.showHideMenuItemsConditionsProviders.push(
|
||||
function treeProvider(aContextTabs) {
|
||||
return {
|
||||
'can-create-subtree' : TreeStyleTabService.canCreateSubtree(aContextTabs)
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
},
|
||||
|
||||
onBeforeBrowserInit : function TSTWH_onBeforeBrowserInit()
|
||||
|
Loading…
Reference in New Issue
Block a user