mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
🎨 每次启动程序不再自动创建 Documents 文件夹 Fix https://github.com/siyuan-note/siyuan/issues/5653
This commit is contained in:
parent
cca8f0c3e4
commit
30fd11cbcd
1 changed files with 0 additions and 4 deletions
|
|
@ -82,10 +82,6 @@ try {
|
|||
if (!fs.existsSync(confDir)) {
|
||||
fs.mkdirSync(confDir, {mode: 0o755, recursive: true})
|
||||
}
|
||||
const documents = path.join(app.getPath('home'), 'Documents')
|
||||
if (!fs.existsSync(documents)) {
|
||||
fs.mkdirSync(documents, {mode: 0o755, recursive: true})
|
||||
}
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
require('electron').dialog.showErrorBox('创建配置目录失败 Failed to create config directory',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue