🐛 Can't switch workspaces on mobile app Fix https://github.com/siyuan-note/siyuan/issues/10654

This commit is contained in:
Daniel 2024-03-19 23:34:31 +08:00
parent db10cf2f43
commit 6b7502fc54
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 3 additions and 2 deletions

View file

@ -311,8 +311,9 @@ 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)
time.Sleep(time.Second * 1)
model.Close(false, false, 1)
time.Sleep(time.Second * 1)
}
}

View file

@ -546,7 +546,7 @@ func Close(force, setCurrentWorkspace bool, execInstallPkg int) (exitCode int) {
exitLock.Lock()
defer exitLock.Unlock()
logging.LogInfof("exiting kernel [force=%v, execInstallPkg=%d]", force, execInstallPkg)
logging.LogInfof("exiting kernel [force=%v, setCurrentWorkspace=%v, execInstallPkg=%d]", force, setCurrentWorkspace, execInstallPkg)
util.PushMsg(Conf.Language(95), 10000*60)
WaitForWritingFiles()