diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Tray.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/Tray.js b/src/lib/Tray.js index d6d49b0c8..d875eef63 100644 --- a/src/lib/Tray.js +++ b/src/lib/Tray.js | |||
@@ -23,9 +23,12 @@ export default class TrayIcon { | |||
23 | click() { | 23 | click() { |
24 | if (app.mainWindow.isMinimized()) { | 24 | if (app.mainWindow.isMinimized()) { |
25 | app.mainWindow.restore(); | 25 | app.mainWindow.restore(); |
26 | } else if (app.mainWindow.isVisible()) { | ||
27 | app.mainWindow.hide(); | ||
28 | } else { | ||
29 | app.mainWindow.show(); | ||
30 | app.mainWindow.focus(); | ||
26 | } | 31 | } |
27 | app.mainWindow.show(); | ||
28 | app.mainWindow.focus(); | ||
29 | }, | 32 | }, |
30 | }, | 33 | }, |
31 | { | 34 | { |