1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-06 22:45:46 +01:00

Fix TabsInTitlebar rubbish on Windows. Closes issue #420.

This commit is contained in:
Kris Maglione
2011-03-22 12:00:05 -04:00
parent 772b322532
commit 5521d8bf6c

View File

@@ -19,6 +19,8 @@ var Tabs = Module("tabs", {
this._lastBufferSwitchArgs = "";
this._lastBufferSwitchSpecial = true;
this.xulTabs = document.getElementById("tabbrowser-tabs");
// hide tabs initially to prevent flickering when 'stal' would hide them
// on startup
if (config.hasTabbrowser)
@@ -1013,8 +1015,13 @@ var Tabs = Module("tabs", {
_("option.showtabline.safeSet"));
tabs.tabStyle.enabled = false;
}
if (value !== "multitab" || !dactyl.has("Gecko2"))
config.tabStrip.collapsed = false;
if (tabs.xulTabs)
tabs.xulTabs.visible = value !== "never";
else
config.tabStrip.collapsed = false;
if (config.tabbrowser.tabContainer._positionPinnedTabs)
config.tabbrowser.tabContainer._positionPinnedTabs();
return value;