mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-20 02:14:23 +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', () => {
|
tray.on('click', () => {
|
||||||
if (store.get('window_minimize_to_tray')) {
|
if (store.get('window_minimize_to_tray')) {
|
||||||
if (mainWindow?.isVisible()) {
|
if (mainWindow?.isVisible()) {
|
||||||
@@ -444,6 +445,7 @@ const createTray = () => {
|
|||||||
createWinThumbarButtons();
|
createWinThumbarButtons();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
tray.setToolTip('Feishin');
|
tray.setToolTip('Feishin');
|
||||||
tray.setContextMenu(contextMenu);
|
tray.setContextMenu(contextMenu);
|
||||||
|
|||||||
Reference in New Issue
Block a user