Don't override autohide state of other windows by last window's state
This commit is contained in:
parent
f492f36b4d
commit
fbc6500262
@ -1342,20 +1342,6 @@ AutoHideBrowser.prototype = inherit(AutoHideConstants, {
|
|||||||
delete this.browser;
|
delete this.browser;
|
||||||
delete this.document;
|
delete this.document;
|
||||||
delete this.window;
|
delete this.window;
|
||||||
},
|
|
||||||
|
|
||||||
saveCurrentState : function AHB_saveCurrentState()
|
|
||||||
{
|
|
||||||
var b = this.browser;
|
|
||||||
var prefs = {
|
|
||||||
'tabbar.autoHide.mode' : this.getModeForNormal(b),
|
|
||||||
'tabbar.autoHide.mode.fullscreen' : this.getModeForFullScreen(b),
|
|
||||||
};
|
|
||||||
for (var i in prefs)
|
|
||||||
{
|
|
||||||
if (utils.getTreePref(i) != prefs[i])
|
|
||||||
utils.setTreePref(i, prefs[i]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -2242,8 +2242,6 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
|
|||||||
|
|
||||||
saveCurrentState : function TSTBrowser_saveCurrentState()
|
saveCurrentState : function TSTBrowser_saveCurrentState()
|
||||||
{
|
{
|
||||||
this.autoHide.saveCurrentState();
|
|
||||||
|
|
||||||
var b = this.mTabBrowser;
|
var b = this.mTabBrowser;
|
||||||
var floatingBox = this.getTabStrip(b).boxObject;
|
var floatingBox = this.getTabStrip(b).boxObject;
|
||||||
var fixedBox = (this.tabStripPlaceHolder || this.getTabStrip(b)).boxObject;
|
var fixedBox = (this.tabStripPlaceHolder || this.getTabStrip(b)).boxObject;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user