preference: Rename one of the two different toggletray messages.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-04-25 20:06:30 -07:00
parent 20295ddc50
commit eacd52fb6c
2 changed files with 2 additions and 2 deletions

View File

@@ -87,7 +87,7 @@ export function initPreferenceView(): void {
handleToggle("menubar-option", state);
});
ipcRenderer.on("toggletray", (_event: Event, state: boolean) => {
ipcRenderer.on("toggle-tray", (_event: Event, state: boolean) => {
handleToggle("tray-option", state);
});

View File

@@ -219,7 +219,7 @@ function toggleTray(): void {
const selector = "webview:not([class*=disabled])";
const webview: WebviewTag = document.querySelector(selector)!;
ipcRenderer.sendTo(webview.getWebContentsId(), "toggletray", state);
ipcRenderer.sendTo(webview.getWebContentsId(), "toggle-tray", state);
}
ipcRenderer.on("toggletray", toggleTray);