mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
🐛 Can't switch workspaces on mobile https://github.com/siyuan-note/siyuan/issues/16544
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
444b38aa26
commit
00d00b54ef
6 changed files with 24 additions and 23 deletions
|
|
@ -785,7 +785,13 @@ func exit(c *gin.Context) {
|
|||
execInstallPkg = int(execInstallPkgArg.(float64))
|
||||
}
|
||||
|
||||
exitCode := model.Close(force, true, execInstallPkg)
|
||||
setCurrentWorkspaceArg := arg["setCurrentWorkspace"]
|
||||
setCurrentWorkspace := true
|
||||
if nil != setCurrentWorkspaceArg {
|
||||
setCurrentWorkspace = setCurrentWorkspaceArg.(bool)
|
||||
}
|
||||
|
||||
exitCode := model.Close(force, setCurrentWorkspace, execInstallPkg)
|
||||
ret.Code = exitCode
|
||||
switch exitCode {
|
||||
case 0:
|
||||
|
|
|
|||
|
|
@ -333,13 +333,8 @@ func setWorkspaceDir(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
if util.ContainerAndroid == util.Container || util.ContainerIOS == util.Container || util.ContainerHarmony == util.Container {
|
||||
util.PushMsg(model.Conf.Language(42), 1000*15)
|
||||
go func() {
|
||||
time.Sleep(1 * time.Second)
|
||||
model.Close(false, false, 1)
|
||||
}()
|
||||
}
|
||||
util.PushMsg(model.Conf.Language(42), 1000*15)
|
||||
time.Sleep(1 * time.Second)
|
||||
}
|
||||
|
||||
func isInvalidWorkspacePath(absPath string) bool {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue