diff --git a/app/electron/main.js b/app/electron/main.js index 67abce917..a522b8871 100644 --- a/app/electron/main.js +++ b/app/electron/main.js @@ -468,6 +468,16 @@ const initKernel = (workspace, lang) => { '⚠️ 无法读写块树文件 Failed to access blocktree file', `
块树文件正在被其他程序锁定或者已经损坏,请删除 工作空间/temp/ 文件夹后重启
The block tree file is being locked by another program or is corrupted, please delete the workspace/temp/ folder and restart.
`) break + case 24: + showErrorWindow( + '⚠️ 工作空间已被锁定 The workspace is locked', + `
该工作空间正在被使用。
The workspace is in use.
`) + break + case 25: + showErrorWindow( + '⚠️ 创建工作空间目录失败 Failed to create workspace directory', + `
创建工作空间目录失败。
Failed to create workspace directory.
`) + break case 0: case 1: // Fatal error break diff --git a/kernel/util/working_mobile.go b/kernel/util/working_mobile.go index bae5e71e8..57dabdf4d 100644 --- a/kernel/util/working_mobile.go +++ b/kernel/util/working_mobile.go @@ -90,7 +90,7 @@ func initWorkspaceDirMobile(workspaceBaseDir string) { } if oldConf && oldData && oldTemp { for _, entry := range entries { - if "home" == entry.Name() { + if "home" == entry.Name() || "siyuan" == entry.Name() { continue }