mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
fix click on feishin icon in macos menu bar (tray) causing switch to feishin window (#1881)
This commit is contained in:
+11
-9
@@ -431,19 +431,21 @@ const createTray = () => {
|
|||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
tray.on('click', () => {
|
if (!isMacOS()) {
|
||||||
if (store.get('window_minimize_to_tray')) {
|
tray.on('click', () => {
|
||||||
if (mainWindow?.isVisible()) {
|
if (store.get('window_minimize_to_tray')) {
|
||||||
mainWindow?.hide();
|
if (mainWindow?.isVisible()) {
|
||||||
|
mainWindow?.hide();
|
||||||
|
} else {
|
||||||
|
mainWindow?.show();
|
||||||
|
createWinThumbarButtons();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
mainWindow?.show();
|
mainWindow?.show();
|
||||||
createWinThumbarButtons();
|
createWinThumbarButtons();
|
||||||
}
|
}
|
||||||
} else {
|
});
|
||||||
mainWindow?.show();
|
}
|
||||||
createWinThumbarButtons();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
tray.setToolTip('Feishin');
|
tray.setToolTip('Feishin');
|
||||||
tray.setContextMenu(contextMenu);
|
tray.setContextMenu(contextMenu);
|
||||||
|
|||||||
Reference in New Issue
Block a user