mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-18 12:33:33 +01:00
Fix TabsInTitlebar rubbish on Windows. Closes issue #420.
This commit is contained in:
@@ -19,6 +19,8 @@ var Tabs = Module("tabs", {
|
|||||||
this._lastBufferSwitchArgs = "";
|
this._lastBufferSwitchArgs = "";
|
||||||
this._lastBufferSwitchSpecial = true;
|
this._lastBufferSwitchSpecial = true;
|
||||||
|
|
||||||
|
this.xulTabs = document.getElementById("tabbrowser-tabs");
|
||||||
|
|
||||||
// hide tabs initially to prevent flickering when 'stal' would hide them
|
// hide tabs initially to prevent flickering when 'stal' would hide them
|
||||||
// on startup
|
// on startup
|
||||||
if (config.hasTabbrowser)
|
if (config.hasTabbrowser)
|
||||||
@@ -1013,8 +1015,13 @@ var Tabs = Module("tabs", {
|
|||||||
_("option.showtabline.safeSet"));
|
_("option.showtabline.safeSet"));
|
||||||
tabs.tabStyle.enabled = false;
|
tabs.tabStyle.enabled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (value !== "multitab" || !dactyl.has("Gecko2"))
|
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)
|
if (config.tabbrowser.tabContainer._positionPinnedTabs)
|
||||||
config.tabbrowser.tabContainer._positionPinnedTabs();
|
config.tabbrowser.tabContainer._positionPinnedTabs();
|
||||||
return value;
|
return value;
|
||||||
|
|||||||
Reference in New Issue
Block a user