mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
add toggle visibility behavior to tray icon (#1793)
This commit is contained in:
+11
-2
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user