diff --git a/src/main/events/rpc/routes/setting/mainApp.ts b/src/main/events/rpc/routes/setting/mainApp.ts index bee6d6f9..6502ab31 100644 --- a/src/main/events/rpc/routes/setting/mainApp.ts +++ b/src/main/events/rpc/routes/setting/mainApp.ts @@ -185,9 +185,10 @@ export default [ if (inStorePath) { dirPath = path.join(STORE_PATH, dirPath || '') } - if (!dirPath || !fs.existsSync(dirPath)) { + if (!dirPath) { return } + fs.ensureDirSync(dirPath) shell.openPath(dirPath) }, },