Don't open startup home pages as a tree #1063
This commit is contained in:
parent
d7c74933b5
commit
7bfb22b3e6
@ -501,10 +501,12 @@ var TreeStyleTabWindowHelper = {
|
||||
|
||||
b.__treestyletab__loadTabs = b.loadTabs;
|
||||
b.loadTabs = function(aURIs, aLoadInBackground, aReplace, ...aArgs) {
|
||||
if (!TreeStyleTabWindowHelper.runningDelayedStartup) { // don't open home tabs as a tree!
|
||||
if (aReplace)
|
||||
this.treeStyleTab.readyToOpenChildTab(this.selectedTab, true);
|
||||
else if (typeof this.treeStyleTab.nextOpenedTabToBeParent == 'undefined')
|
||||
this.treeStyleTab.nextOpenedTabToBeParent = true;
|
||||
}
|
||||
|
||||
var result;
|
||||
var tabs = [];
|
||||
|
@ -106,6 +106,8 @@ function TreeStyleTabBrowser(aWindowService, aTabBrowser)
|
||||
this.subTreeMovingCount = 0;
|
||||
this.subTreeChildrenMovingCount = 0;
|
||||
this._treeViewEnabled = true;
|
||||
|
||||
this.nextOpenedTabToBeParent = false;
|
||||
}
|
||||
|
||||
TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
|
||||
|
Loading…
Reference in New Issue
Block a user