From 67952acdfa066bbb4b1aebd923245815b962a4cf Mon Sep 17 00:00:00 2001 From: Martin BernĂ¡t Date: Tue, 16 Nov 2021 00:38:29 +0100 Subject: Fix tray icon not showing/hiding the Ferdi window (#2234) * Implement toggle behavior also in tray menu on right mouse click --- src/stores/AppStore.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/stores') 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 { this.actions.service.setActive({ serviceId, }); - if (!app.mainWindow.isVisible()) { + + if (!mainWindow.isVisible()) { mainWindow.show(); } - if (app.mainWindow.isMinimized()) { + if (mainWindow.isMinimized()) { mainWindow.restore(); } mainWindow.focus(); -- cgit v1.2.3-70-g09d2