Allow "tabs in titlebar" feature if Classic Theme Restorer is installed (#674)

https://addons.mozilla.org/firefox/addon/classicthemerestorer/
This commit is contained in:
Piro / YUKI Hiroshi 2014-04-02 03:43:42 +09:00
parent f2298baa89
commit 84640a12ca
2 changed files with 5 additions and 1 deletions

View File

@ -645,6 +645,7 @@ pref("extensions.treestyletab.pinnedTab.faviconized", true);
pref("extensions.treestyletab.compatibility.AgingTabs", true);
pref("extensions.treestyletab.compatibility.AIOS", true); // All-in-One Sidebar
pref("extensions.treestyletab.compatibility.Autohide", true);
pref("extensions.treestyletab.compatibility.ClassicThemeRestorer", true);
pref("extensions.treestyletab.compatibility.ColorfulTabs", true);
pref("extensions.treestyletab.compatibility.ContextSearch", true);
pref("extensions.treestyletab.compatibility.DomainTab", true);

View File

@ -1106,7 +1106,10 @@ TreeStyleTabWindow.prototype = {
}
if (TabsInTitlebar) {
let allowed = isTopTabbar && this.browser.treeStyleTab.fixed;
if ('navbarontop' in this.window && utils.getTreePref('compatibility.NavbarOnTitlebar'))
if (
('navbarontop' in this.window && utils.getTreePref('compatibility.NavbarOnTitlebar')) ||
('classicthemerestorerjs' in this.window && utils.getTreePref('compatibility.ClassicThemeRestorer'))
)
allowed = true;
TabsInTitlebar.allowedBy('TreeStyleTab-tabsOnTop', allowed);
}