🎨 使用第三方同步盘时弹出提示并退出内核 https://github.com/siyuan-note/siyuan/issues/7683

This commit is contained in:
Liang Ding 2023-03-17 08:59:56 +08:00
parent 611a3f48d7
commit 6b43dbad4b
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
7 changed files with 24 additions and 8 deletions

View file

@ -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))