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:
parent
0cb008078a
commit
7e3050d639
1 changed files with 6 additions and 1 deletions
|
@ -110,7 +110,12 @@ export default class Main {
|
||||||
])
|
])
|
||||||
|
|
||||||
tray.setContextMenu(contextMenu);
|
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;
|
this.tray = tray;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue