From 7e3050d639f23c6a7381adbbb06eabd87c14f1d8 Mon Sep 17 00:00:00 2001 From: Michael Hollister Date: Thu, 14 Nov 2024 01:15:21 -0600 Subject: [PATCH] Disable tray left-click window toggle on Mac --- receivers/electron/src/Main.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/receivers/electron/src/Main.ts b/receivers/electron/src/Main.ts index b658917..ae38240 100644 --- a/receivers/electron/src/Main.ts +++ b/receivers/electron/src/Main.ts @@ -110,7 +110,12 @@ export default class Main { ]) tray.setContextMenu(contextMenu); - tray.on('click', () => { Main.toggleMainWindow(); } ); + + // Left-click opens up tray menu, unlike in Windows/Linux + if (process.platform !== 'darwin') { + tray.on('click', () => { Main.toggleMainWindow(); } ); + } + this.tray = tray; }