🐛 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:11:44 +08:00
parent 71a7a71b3a
commit b72b832007
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 18 additions and 14 deletions

View file

@ -34,7 +34,7 @@ func HandleSignal() {
signal.Notify(c, syscall.SIGINT, syscall.SIGQUIT, syscall.SIGTERM)
s := <-c
logging.LogInfof("received os signal [%s], exit kernel process now", s)
Close(false, 1)
Close(false, true, 1)
}
var (
@ -78,7 +78,7 @@ func HookDesktopUIProcJob() {
}
logging.LogWarnf("confirmed no active UI proc, exit kernel process now")
Close(false, 1)
Close(false, true, 1)
}
var uiProcNames = []string{"siyuan", "electron"}