1
0
Fork 0
mirror of https://gitlab.com/futo-org/fcast.git synced 2025-06-24 21:25:23 +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.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;
}