Add secret preference to activate Tabs in Titlebar feature without any other addon.
This will make it possible to customize appearance around the navigation bar and the title bar by users.
This commit is contained in:
parent
a22c9c5e15
commit
4b2fae85b4
@ -671,6 +671,12 @@ pref("extensions.treestyletab.pinnedTab.faviconized", true);
|
||||
pref("extensions.treestyletab.groupTab.columnize", true);
|
||||
pref("extensions.treestyletab.groupTab.columnize.width", "20em");
|
||||
|
||||
/**
|
||||
* If true, TST automatically disables Tabs in Titlebar appearance to avoid
|
||||
* broken appearance problems.
|
||||
*/
|
||||
pref("extensions.treestyletab.blockTabsInTitlebar", true);
|
||||
|
||||
/**
|
||||
* Compatibility hack flags for other addons. They can be disabled by each
|
||||
* addon, when the addon become working with TST without dirty hacks.
|
||||
|
@ -1286,6 +1286,7 @@ TreeStyleTabWindow.prototype = inherit(TreeStyleTabBase, {
|
||||
if (TabsInTitlebar) {
|
||||
let menubar = this.window.document.getElementById('toolbar-menubar');
|
||||
let allowed = (
|
||||
!utils.getTreePref('blockTabsInTitlebar') ||
|
||||
(isTopTabbar && this.browser.treeStyleTab.fixed) ||
|
||||
(!this.isMac && menubar.getAttribute('autohide') !== 'true')
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user