Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

desktop: fix app not quitting when closeToSystemTray enabled

ammarahm-ed21b278d42e8b
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));
}