We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06117b5 commit cf4c812Copy full SHA for cf4c812
src/app/app.tray.js
@@ -51,7 +51,7 @@ function setupTray(browserWindow) {
51
role: 'quit',
52
},
53
]))
54
- tray.on('click', () => browserWindow.show())
+ tray.on('click', () => browserWindow.isFocused() ? browserWindow.close() : browserWindow.show())
55
56
browserWindow.on('close', event => {
57
if (!isAppQuitting) {
0 commit comments