aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Nadiia Ridko <33199975+dandelionadia@users.noreply.github.com>2020-05-13 03:48:28 +0200
committerLibravatar GitHub <noreply@github.com>2020-05-13 01:48:28 +0000
commit2e68722f60087fc2caa4ea3c63405629dfc3b2b0 (patch)
treeb055da80ce5c592826e82ec2bc7f31498a242604 /src
parentNew Crowdin translations (#658) (diff)
downloadferdium-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')
-rw-r--r--src/lib/Tray.js7
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 {