Close only unpinned tabs;
This commit is contained in:
parent
c03ab2862b
commit
54bbe4ecbd
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue