mirror of
https://ark.sudovanilla.org/Korbs/electron-tabs.git
synced 2024-12-22 19:43:53 +00:00
Fix previous tab not activated on close
This commit is contained in:
parent
b57253c82f
commit
7dd4b2aa98
2
index.js
2
index.js
|
@ -223,10 +223,10 @@ class Tab extends EventEmitter {
|
|||
let tabGroup = this.tabGroup;
|
||||
tabGroup.tabContainer.removeChild(this.tab);
|
||||
tabGroup.viewContainer.removeChild(this.webview);
|
||||
let activeTab = this.tabGroup.getActiveTab();
|
||||
TabGroupPrivate.removeTab.bind(tabGroup)(this, true);
|
||||
this.emit("close", this);
|
||||
|
||||
let activeTab = this.tabGroup.getActiveTab();
|
||||
if (activeTab.id === this.id) {
|
||||
TabGroupPrivate.activateRecentTab.bind(tabGroup)();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue