feat: Fixed MacOS dock icon not hiding when app is hidden

This commit is contained in:
Ivan
2022-09-06 21:16:35 +03:00
parent 69c9c9abf7
commit b1529ad335

4
app.js
View File

@@ -551,6 +551,10 @@ function createTray() {
tray.on('click', () => {
if (mainWindow.isVisible()) {
mainWindow.hide();
if (process.platform === 'darwin') {
app.dock.hide();
}
} else {
showWindow();
}