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 tray icons not loading
Abdullah Atta8ec4865e231a
diff --git a/apps/desktop/src/main.ts b/apps/desktop/src/main.tsindex 128bdf17f..0a36dd539 100644--- a/apps/desktop/src/main.ts+++ b/apps/desktop/src/main.ts@@ -91,15 +91,17 @@ async function createWindow() {if (cliOptions.hidden && !config.desktopSettings.minimizeToSystemTray)mainWindow.minimize();- setTimeout(() => {- mainWindow.setOpacity(1);- }, 70);+ await mainWindow.webContents.loadURL(`${createURL(cliOptions, "/")}`);+ mainWindow.setOpacity(1);+ if (config.privacyMode) {+ await api.integration.setPrivacyMode(config.privacyMode);+ }++ await AssetManager.loadIcons();setupDesktopIntegration();createIPCHandler({ router, windows: [mainWindow] });- await mainWindow.webContents.loadURL(`${createURL(cliOptions, "/")}`);-mainWindow.webContents.session.setSpellCheckerDictionaryDownloadURL("http://dictionaries.notesnook.com/");@@ -123,11 +125,6 @@ async function createWindow() {setupTray();setupJumplist();});-- await AssetManager.loadIcons();- if (config.privacyMode) {- await api.integration.setPrivacyMode(config.privacyMode);- }}app.once("ready", async () => {