mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-10 22:23:28 +08:00
🎨 改进桌面端监控前端界面进程退出钩子
This commit is contained in:
parent
88c478dc72
commit
4c6b61cc37
@ -86,8 +86,11 @@ func HookDesktopUIProcJob() {
|
||||
return true
|
||||
})
|
||||
|
||||
if 1 < noUIProcCount {
|
||||
logging.LogInfof("no active UI proc, exit kernel process now")
|
||||
Close(false, 1)
|
||||
if 0 < noUIProcCount {
|
||||
logging.LogInfof("no active UI proc count [%d]", noUIProcCount)
|
||||
if 1 < noUIProcCount {
|
||||
logging.LogInfof("confirmed no active UI proc, exit kernel process now")
|
||||
Close(false, 1)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user