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.__treestyletab__loadTabs = b.loadTabs;
|
||||||
b.loadTabs = function(aURIs, aLoadInBackground, aReplace, ...aArgs) {
|
b.loadTabs = function(aURIs, aLoadInBackground, aReplace, ...aArgs) {
|
||||||
|
if (!TreeStyleTabWindowHelper.runningDelayedStartup) { // don't open home tabs as a tree!
|
||||||
if (aReplace)
|
if (aReplace)
|
||||||
this.treeStyleTab.readyToOpenChildTab(this.selectedTab, true);
|
this.treeStyleTab.readyToOpenChildTab(this.selectedTab, true);
|
||||||
else if (typeof this.treeStyleTab.nextOpenedTabToBeParent == 'undefined')
|
else if (typeof this.treeStyleTab.nextOpenedTabToBeParent == 'undefined')
|
||||||
this.treeStyleTab.nextOpenedTabToBeParent = true;
|
this.treeStyleTab.nextOpenedTabToBeParent = true;
|
||||||
|
}
|
||||||
|
|
||||||
var result;
|
var result;
|
||||||
var tabs = [];
|
var tabs = [];
|
||||||
|
@ -106,6 +106,8 @@ function TreeStyleTabBrowser(aWindowService, aTabBrowser)
|
|||||||
this.subTreeMovingCount = 0;
|
this.subTreeMovingCount = 0;
|
||||||
this.subTreeChildrenMovingCount = 0;
|
this.subTreeChildrenMovingCount = 0;
|
||||||
this._treeViewEnabled = true;
|
this._treeViewEnabled = true;
|
||||||
|
|
||||||
|
this.nextOpenedTabToBeParent = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
|
TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user