mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Open the last workspace by default https://github.com/siyuan-note/siyuan/issues/10570
This commit is contained in:
parent
271cf982f7
commit
6ff917f48d
2 changed files with 12 additions and 1 deletions
|
|
@ -243,7 +243,6 @@ func initWorkspaceDir(workspaceArg string) {
|
|||
} else {
|
||||
workspacePaths, _ = ReadWorkspacePaths()
|
||||
if 0 < len(workspacePaths) {
|
||||
// 取最后一个(也就是最近打开的)工作空间
|
||||
WorkspaceDir = workspacePaths[len(workspacePaths)-1]
|
||||
} else {
|
||||
WorkspaceDir = defaultWorkspaceDir
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue