add toggle visibility behavior to tray icon (#1793)

This commit is contained in:
jeffvli
2026-03-04 21:38:11 -08:00
parent 43c5cf4275
commit dbc215c44f
+11 -2
View File
@@ -408,8 +408,17 @@ const createTray = () => {
]); ]);
tray.on('click', () => { tray.on('click', () => {
mainWindow?.show(); if (store.get('window_minimize_to_tray')) {
createWinThumbarButtons(); if (mainWindow?.isVisible()) {
mainWindow?.hide();
} else {
mainWindow?.show();
createWinThumbarButtons();
}
} else {
mainWindow?.show();
createWinThumbarButtons();
}
}); });
tray.setToolTip('Feishin'); tray.setToolTip('Feishin');