mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-05-07 19:29:11 -05:00
🎨 每次启动程序不再自动创建 Documents 文件夹 Fix https://github.com/siyuan-note/siyuan/issues/5653
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user