mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-31 13:58:49 +01:00
🎨 使用第三方同步盘时弹出提示并退出内核 https://github.com/siyuan-note/siyuan/issues/7683
This commit is contained in:
parent
611a3f48d7
commit
6b43dbad4b
7 changed files with 24 additions and 8 deletions
|
|
@ -197,6 +197,13 @@ func setWorkspaceDir(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
if util.IsCloudDrivePath(path) {
|
||||
ret.Code = -1
|
||||
ret.Msg = model.Conf.Language(196)
|
||||
ret.Data = map[string]interface{}{"closeTimeout": 7000}
|
||||
return
|
||||
}
|
||||
|
||||
if gulu.OS.IsWindows() {
|
||||
// 改进判断工作空间路径实现 https://github.com/siyuan-note/siyuan/issues/7569
|
||||
installDirLower := strings.ToLower(filepath.Dir(util.WorkingDir))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue