diff options
author | Nadiia Ridko <33199975+dandelionadia@users.noreply.github.com> | 2020-05-13 03:48:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-13 01:48:28 +0000 |
commit | 2e68722f60087fc2caa4ea3c63405629dfc3b2b0 (patch) | |
tree | b055da80ce5c592826e82ec2bc7f31498a242604 /src/lib | |
parent | New Crowdin translations (#658) (diff) | |
download | ferdium-app-2e68722f60087fc2caa4ea3c63405629dfc3b2b0.tar.gz ferdium-app-2e68722f60087fc2caa4ea3c63405629dfc3b2b0.tar.zst ferdium-app-2e68722f60087fc2caa4ea3c63405629dfc3b2b0.zip |
Close/open window when clicking on tray menu item (#630)
Diffstat (limited to 'src/lib')
-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 | { |