mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-10-23 03:31:56 +00:00
preference: Rename one of the two different toggletray messages.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user