複数タブの復元かどうかの判別を、タブが開かれた直後のタイミングでも行うようにした。
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5543 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
e2e09a93a2
commit
6af1f2e765
@ -1438,7 +1438,18 @@ TreeStyleTabBrowser.prototype = {
|
||||
this.setTabValue(tab, this.kINSERT_BEFORE, next.getAttribute(this.kID));
|
||||
this.setTabValue(next, this.kINSERT_AFTER, tab.getAttribute(this.kID));
|
||||
}
|
||||
|
||||
if (!TreeStyleTabService.restoringWindow &&
|
||||
!this.useTMPSessionAPI &&
|
||||
!this._checkRestoringWindowTimerOnTabAdded) {
|
||||
this._checkRestoringWindowTimerOnTabAdded = window.setTimeout(function(aSelf) {
|
||||
aSelf._checkRestoringWindowTimerOnTabAdded = null;
|
||||
if (aSelf.getRestoringTabsCount() > 1)
|
||||
TreeStyleTabService.restoringWindow = true;
|
||||
}, 0, this);
|
||||
}
|
||||
},
|
||||
_checkRestoringWindowTimerOnTabAdded : null,
|
||||
|
||||
onTabRemoved : function(aEvent)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user