mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🐛 Can't switch workspaces on mobile app Fix https://github.com/siyuan-note/siyuan/issues/10654
This commit is contained in:
@@ -490,7 +490,7 @@ func exit(c *gin.Context) {
|
||||
execInstallPkg = int(execInstallPkgArg.(float64))
|
||||
}
|
||||
|
||||
exitCode := model.Close(force, execInstallPkg)
|
||||
exitCode := model.Close(force, true, execInstallPkg)
|
||||
ret.Code = exitCode
|
||||
switch exitCode {
|
||||
case 0:
|
||||
|
||||
@@ -312,7 +312,7 @@ func setWorkspaceDir(c *gin.Context) {
|
||||
if util.ContainerAndroid == util.Container || util.ContainerIOS == util.Container {
|
||||
util.PushMsg(model.Conf.Language(42), 1000*15)
|
||||
time.Sleep(time.Second * 2)
|
||||
model.Close(false, 1)
|
||||
model.Close(false, false, 1)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user