mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-24 12:57:55 +02:00
fix click on feishin icon in macos menu bar (tray) causing switch to feishin window (#1881)
This commit is contained in:
@@ -431,6 +431,7 @@ const createTray = () => {
|
||||
},
|
||||
]);
|
||||
|
||||
if (!isMacOS()) {
|
||||
tray.on('click', () => {
|
||||
if (store.get('window_minimize_to_tray')) {
|
||||
if (mainWindow?.isVisible()) {
|
||||
@@ -444,6 +445,7 @@ const createTray = () => {
|
||||
createWinThumbarButtons();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
tray.setToolTip('Feishin');
|
||||
tray.setContextMenu(contextMenu);
|
||||
|
||||
Reference in New Issue
Block a user