mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 The workspace will be reset on iOS https://github.com/siyuan-note/siyuan/issues/16544
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
5bef3bf817
commit
af823bd8fa
1 changed files with 2 additions and 0 deletions
|
|
@ -243,8 +243,10 @@ func getWorkspaces(c *gin.Context) {
|
|||
|
||||
var workspaces, openedWorkspaces, closedWorkspaces []*Workspace
|
||||
for _, p := range workspacePaths {
|
||||
logging.LogInfof("get workspace [%s]", p)
|
||||
closed := !util.IsWorkspaceLocked(p)
|
||||
if closed {
|
||||
logging.LogInfof("workspace [%s] is closed", p)
|
||||
closedWorkspaces = append(closedWorkspaces, &Workspace{Path: p, Closed: closed})
|
||||
} else {
|
||||
openedWorkspaces = append(openedWorkspaces, &Workspace{Path: p, Closed: closed})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue