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
fix: wse async showOpenDialog for linux problem
thecodrrd5d96cf56c98
diff --git a/apps/web/desktop/ipc/calls/selectDirectory.js b/apps/web/desktop/ipc/calls/selectDirectory.jsindex 663e51eef..28abeb609 100644--- a/apps/web/desktop/ipc/calls/selectDirectory.js+++ b/apps/web/desktop/ipc/calls/selectDirectory.js@@ -1,14 +1,16 @@const { dialog } = require("electron");const { resolvePath } = require("../utils");-module.exports = function (args, win) {+module.exports = async function (args, win) {const { title, buttonLabel, defaultPath } = args;- const paths = dialog.showOpenDialogSync(win, {+ const result = await dialog.showOpenDialog(win, {title,buttonLabel,properties: ["openDirectory"],defaultPath: resolvePath(defaultPath),});- return !paths ? undefined : paths[0];+ if (result.canceled) return;++ return result.filePaths[0];};