Fix close settings causing split webviews (#188).

This commit is contained in:
Zhongyi Tong
2017-06-28 00:44:23 +08:00
parent a16181be33
commit 9e5a67c36b

View File

@@ -150,7 +150,10 @@ class ServerManagerView {
delete this.tabs[index];
delete this.functionalTabs[name];
this.activateTab(0, false);
// Issue #188: If the functional tab was not focused, do not activate another tab.
if (this.activeTabIndex == index) {
this.activateTab(0, false);
}
}
updateBadge() {