一気に復元するタブの数が多い時は、復元する前に確認するように
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5644 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
6670c55dc2
commit
52b959c954
@ -2170,7 +2170,7 @@ TreeStyleTabBrowser.prototype = {
|
||||
},
|
||||
_clearRedirectionTableTimer : null,
|
||||
|
||||
restoreClosedSet : function(aId, aRestoredTab)
|
||||
restoreClosedSet : function TSTBrowser_restoreClosedSet(aId, aRestoredTab)
|
||||
{
|
||||
if (
|
||||
this.useTMPSessionAPI ||
|
||||
@ -2195,6 +2195,11 @@ TreeStyleTabBrowser.prototype = {
|
||||
(
|
||||
indexes.length+1 < count &&
|
||||
this.getTreePref('undoCloseTabSubtree.onlyFullSet')
|
||||
) ||
|
||||
(
|
||||
'_confirmOpenInTabs' in PlacesUIUtils &&
|
||||
PlacesUIUtils._confirmOpenInTabs &&
|
||||
!PlacesUIUtils._confirmOpenInTabs(indexes.length)
|
||||
)
|
||||
)
|
||||
return;
|
||||
@ -2209,11 +2214,9 @@ TreeStyleTabBrowser.prototype = {
|
||||
undoCloseTab(aIndex - (offset++));
|
||||
});
|
||||
|
||||
if (aRestoredTab) {
|
||||
window.setTimeout(function(aSelf) {
|
||||
aSelf.mTabBrowser.selectedTab = aRestoredTab;
|
||||
}, 0, this);
|
||||
}
|
||||
window.setTimeout(function(aSelf, aNextFocused) {
|
||||
aSelf.mTabBrowser.selectedTab = aNextFocused;
|
||||
}, 0, this, aRestoredTab || aSelf.mTabBrowser.selectedTab);
|
||||
|
||||
this.startRendering();
|
||||
this._restoringClosedSet = false;
|
||||
|
Loading…
Reference in New Issue
Block a user