diff --git a/src/app/app.tray.js b/src/app/app.tray.js index 3b3d29de..51408252 100644 --- a/src/app/app.tray.js +++ b/src/app/app.tray.js @@ -51,7 +51,7 @@ function setupTray(browserWindow) { role: 'quit', }, ])) - tray.on('click', () => browserWindow.show()) + tray.on('click', () => browserWindow.isFocused() ? browserWindow.close() : browserWindow.show()) browserWindow.on('close', event => { if (!isAppQuitting) {