Close only unpinned tabs;

This commit is contained in:
Shin'ya Ueoka 2018-12-27 20:06:32 +09:00
parent c03ab2862b
commit 54bbe4ecbd

View file

@ -29,7 +29,10 @@ export default class OperationInteractor {
return; return;
} }
for (let i = index + 1; i < tabs.length; ++i) { for (let i = index + 1; i < tabs.length; ++i) {
this.tabPresenter.remove(tabs[i].id); let tab = tabs[i];
if (!tab.pinned) {
this.tabPresenter.remove(tab.id);
}
} }
} }