зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1267503 - Show the font-inspector in sidebar menu if enabled, r=jdescottes
This commit is contained in:
Родитель
995e1d45af
Коммит
61a9f0df50
|
@ -144,8 +144,9 @@ ToolSidebar.prototype = {
|
|||
// Add menuitems to the alltabs menu if there are already tabs in the
|
||||
// sidebar
|
||||
for (let [id, tab] of this._tabs) {
|
||||
if (!tab.hidden) {
|
||||
this._addItemToAllTabsMenu(id, tab, tab.hasAttribute("selected"));
|
||||
let item = this._addItemToAllTabsMenu(id, tab, tab.hasAttribute("selected"));
|
||||
if (tab.hidden) {
|
||||
item.hidden = true;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -410,7 +410,7 @@ InspectorPanel.prototype = {
|
|||
if (Services.prefs.getBoolPref("devtools.fontinspector.enabled") &&
|
||||
this.canGetUsedFontFaces) {
|
||||
this.fontInspector = new FontInspector(this, this.panelWin);
|
||||
this.panelDoc.getElementById("sidebar-tab-fontinspector").hidden = false;
|
||||
this.sidebar.toggleTab(true, "fontinspector");
|
||||
}
|
||||
|
||||
this.layoutview = new LayoutView(this, this.panelWin);
|
||||
|
|
Загрузка…
Ссылка в новой задаче