1
0
Fork 0
mirror of https://gitlab.com/futo-org/fcast.git synced 2025-07-22 16:07:00 +00:00

Disable tray left-click window toggle on Mac

This commit is contained in:
Michael Hollister 2024-11-14 01:15:21 -06:00
parent 0cb008078a
commit 7e3050d639

View file

@ -110,7 +110,12 @@ export default class Main {
]) ])
tray.setContextMenu(contextMenu); tray.setContextMenu(contextMenu);
// Left-click opens up tray menu, unlike in Windows/Linux
if (process.platform !== 'darwin') {
tray.on('click', () => { Main.toggleMainWindow(); } ); tray.on('click', () => { Main.toggleMainWindow(); } );
}
this.tray = tray; this.tray = tray;
} }