diff options
author | Martin BernĂ¡t <martin.bernat@gmail.com> | 2021-11-16 00:38:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-16 05:08:29 +0530 |
commit | 67952acdfa066bbb4b1aebd923245815b962a4cf (patch) | |
tree | 449e7e5931159fded75c9370fbf41fb00908a2bd /src/stores | |
parent | 5.6.4-nightly.6 [skip ci] (diff) | |
download | ferdium-app-67952acdfa066bbb4b1aebd923245815b962a4cf.tar.gz ferdium-app-67952acdfa066bbb4b1aebd923245815b962a4cf.tar.zst ferdium-app-67952acdfa066bbb4b1aebd923245815b962a4cf.zip |
Fix tray icon not showing/hiding the Ferdi window (#2234)
* Implement toggle behavior also in tray menu on right mouse click
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/AppStore.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index 81cef3775..d652276ea 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js | |||
@@ -322,10 +322,11 @@ export default class AppStore extends Store { | |||
322 | this.actions.service.setActive({ | 322 | this.actions.service.setActive({ |
323 | serviceId, | 323 | serviceId, |
324 | }); | 324 | }); |
325 | if (!app.mainWindow.isVisible()) { | 325 | |
326 | if (!mainWindow.isVisible()) { | ||
326 | mainWindow.show(); | 327 | mainWindow.show(); |
327 | } | 328 | } |
328 | if (app.mainWindow.isMinimized()) { | 329 | if (mainWindow.isMinimized()) { |
329 | mainWindow.restore(); | 330 | mainWindow.restore(); |
330 | } | 331 | } |
331 | mainWindow.focus(); | 332 | mainWindow.focus(); |