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: fix start minimized on windows
Abdullah Atta74f1d3cb746f
diff --git a/apps/web/desktop/electron.js b/apps/web/desktop/electron.jsindex 61af583b2..49d934c78 100644--- a/apps/web/desktop/electron.js+++ b/apps/web/desktop/electron.js@@ -174,10 +174,6 @@ function createURL(options) {function setupDesktopIntegration() {const desktopIntegration = getDesktopIntegration();- if (desktopIntegration.autoStart) {- AutoLaunch.enable(desktopIntegration.startMinimized);- }-globalThis.window.on("close", (e) => {if (getDesktopIntegration().closeToSystemTray) {e.preventDefault();@@ -199,4 +195,12 @@ function setupDesktopIntegration() {}}});++ if (desktopIntegration.autoStart) {+ AutoLaunch.enable(desktopIntegration.startMinimized);++ if (process.platform === "win32" && desktopIntegration.startMinimized) {+ globalThis.window.minimize();+ }+ }}