preference: Unify duplicate toggle-sidebar-setting event.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2022-02-17 20:57:17 -08:00
parent 3ffc7251f4
commit 5dcd3956ac
3 changed files with 3 additions and 4 deletions

View File

@@ -999,7 +999,7 @@ class ServerManagerView {
this.toggleSidebar(show);
// Toggle sidebar switch in the general settings
this.updateGeneralSettings("toggle-sidebar-setting", show);
this.updateGeneralSettings("toggle-sidebar", show);
});
ipcRenderer.on("toggle-silent", (event: Event, state: boolean) => {