mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-10 00:45:52 +00:00
Merge pull request #189 from geeeeeeeeek/issue/close-settings-bug
Fix close settings causing split webviews (#188).
This commit is contained in:
@@ -70,7 +70,7 @@ class ServerManagerView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
openFunctionalTab(tabProps) {
|
openFunctionalTab(tabProps) {
|
||||||
if (this.functionalTabs[tabProps.name]) {
|
if (this.functionalTabs[tabProps.name] !== undefined) {
|
||||||
this.activateTab(this.functionalTabs[tabProps.name]);
|
this.activateTab(this.functionalTabs[tabProps.name]);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -150,8 +150,11 @@ class ServerManagerView {
|
|||||||
delete this.tabs[index];
|
delete this.tabs[index];
|
||||||
delete this.functionalTabs[name];
|
delete this.functionalTabs[name];
|
||||||
|
|
||||||
|
// Issue #188: If the functional tab was not focused, do not activate another tab.
|
||||||
|
if (this.activeTabIndex === index) {
|
||||||
this.activateTab(0, false);
|
this.activateTab(0, false);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
updateBadge() {
|
updateBadge() {
|
||||||
let messageCountAll = 0;
|
let messageCountAll = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user