mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 启动时移除处于网盘路径下的工作空间 https://github.com/siyuan-note/siyuan/issues/7790
This commit is contained in:
parent
a85c61d3c1
commit
cb2dc0711b
1 changed files with 10 additions and 0 deletions
|
|
@ -214,6 +214,16 @@ func initWorkspaceDir(workspaceArg string) {
|
|||
}
|
||||
} else {
|
||||
workspacePaths, _ = ReadWorkspacePaths()
|
||||
var tmp []string
|
||||
for _, workspacePath := range workspacePaths {
|
||||
if IsCloudDrivePath(workspacePath) {
|
||||
logging.LogWarnf("skip the cloud drive path [%s]", workspacePath)
|
||||
continue
|
||||
}
|
||||
tmp = append(tmp, workspacePath)
|
||||
}
|
||||
workspacePaths = tmp
|
||||
|
||||
if 0 < len(workspacePaths) {
|
||||
// 取最后一个(也就是最近打开的)工作空间
|
||||
WorkspaceDir = workspacePaths[len(workspacePaths)-1]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue