Prevent closing tab when closable is set to false

This commit is contained in:
Thomas Brouard 2016-10-31 18:08:24 +01:00
parent fd69f6bbe5
commit 4b2a2476ea

View file

@ -189,7 +189,8 @@ class Tab {
// TODO: move
}
close () {
close (force) {
if (!this.closable && !force) return;
let tabGroup = this.tabGroup;
tabGroup.tabContainer.removeChild(this.tab);
tabGroup.viewContainer.removeChild(this.webview);