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: show sys tray icon only if close/minimize to sys tray is on
Abdullah Attae52b72b0c639
diff --git a/apps/web/desktop/electron.js b/apps/web/desktop/electron.jsindex 9337fe97e..88f714a3b 100644--- a/apps/web/desktop/electron.js+++ b/apps/web/desktop/electron.js@@ -92,7 +92,6 @@ async function createWindow() {setupMenu();setupJumplist();setupDesktopIntegration();- setupTray();mainWindow.webContents.session.setSpellCheckerDictionaryDownloadURL("http://dictionaries.notesnook.com/"@@ -173,6 +172,13 @@ function createURL(options) {function setupDesktopIntegration() {const desktopIntegration = getDesktopIntegration();+ if (+ desktopIntegration.closeToSystemTray ||+ desktopIntegration.minimizeToSystemTray+ ) {+ setupTray();+ }+// 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) {