From 21b278d42e8bcd83a219005dace1ea2bc7f72353 Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Tue, 14 Feb 2023 12:12:58 +0500 Subject: [PATCH] desktop: fix app not quitting when closeToSystemTray enabled --- apps/web/desktop/electron.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/desktop/electron.js b/apps/web/desktop/electron.js index 88f714a3b..8cc221b2e 100644 --- a/apps/web/desktop/electron.js +++ b/apps/web/desktop/electron.js @@ -181,7 +181,7 @@ function setupDesktopIntegration() { // when close to system tray is enabled, it becomes nigh impossible // to "quit" the app. This is necessary in order to fix that. - if (getDesktopIntegration().closeToSystemTray) { + if (desktopIntegration.closeToSystemTray) { app.on("before-quit", () => app.exit(0)); }