A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
desktop: make quit from dock menu work again on macOS
Abdullah Atta494d6633b510
diff --git a/apps/web/desktop/electron.js b/apps/web/desktop/electron.jsindex 27dbae359..9337fe97e 100644--- a/apps/web/desktop/electron.js+++ b/apps/web/desktop/electron.js@@ -173,6 +173,12 @@ function createURL(options) {function setupDesktopIntegration() {const desktopIntegration = getDesktopIntegration();+ // 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) {+ app.on("before-quit", () => app.exit(0));+ }+globalThis.window.on("close", (e) => {if (getDesktopIntegration().closeToSystemTray) {e.preventDefault();