fix click on feishin icon in macos menu bar (tray) causing switch to feishin window (#1881)

This commit is contained in:
ebee04
2026-03-30 04:34:18 +01:00
committed by GitHub
parent d81f30a8b5
commit 0d3cf912d3
+2
View File
@@ -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);