Allow "tabs in titlebar" if Tabs On Bottom addon is installed

This commit is contained in:
Piro / YUKI Hiroshi 2014-05-05 17:46:29 +09:00
parent 5d53c82533
commit 22a635e8d9
2 changed files with 2 additions and 0 deletions

View File

@ -686,6 +686,7 @@ pref("extensions.treestyletab.compatibility.STM", true); // Super Tab Mode
pref("extensions.treestyletab.compatibility.SuperDragAndGo", true); pref("extensions.treestyletab.compatibility.SuperDragAndGo", true);
pref("extensions.treestyletab.compatibility.Tabberwocky", true); pref("extensions.treestyletab.compatibility.Tabberwocky", true);
pref("extensions.treestyletab.compatibility.TabControl", true); pref("extensions.treestyletab.compatibility.TabControl", true);
pref("extensions.treestyletab.compatibility.TabsOnBottom", true);
pref("extensions.treestyletab.compatibility.TabUtilities", true); pref("extensions.treestyletab.compatibility.TabUtilities", true);
pref("extensions.treestyletab.compatibility.TMP", true); // Tab Mix Plus pref("extensions.treestyletab.compatibility.TMP", true); // Tab Mix Plus
pref("extensions.treestyletab.compatibility.TooManyTabs", true); pref("extensions.treestyletab.compatibility.TooManyTabs", true);

View File

@ -1107,6 +1107,7 @@ TreeStyleTabWindow.prototype = inherit(TreeStyleTabBase, {
if (TabsInTitlebar) { if (TabsInTitlebar) {
let allowed = isTopTabbar && this.browser.treeStyleTab.fixed; let allowed = isTopTabbar && this.browser.treeStyleTab.fixed;
if ( if (
(this.window.TabsOnBottom && utils.getTreePref('compatibility.TabsOnBottom')) ||
('navbarontop' in this.window && utils.getTreePref('compatibility.NavbarOnTitlebar')) || ('navbarontop' in this.window && utils.getTreePref('compatibility.NavbarOnTitlebar')) ||
('classicthemerestorerjs' in this.window && utils.getTreePref('compatibility.ClassicThemeRestorer')) ('classicthemerestorerjs' in this.window && utils.getTreePref('compatibility.ClassicThemeRestorer'))
) )