mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 改进桌面端监控前端界面进程退出钩子
This commit is contained in:
parent
88c478dc72
commit
4c6b61cc37
1 changed files with 6 additions and 3 deletions
|
|
@ -86,8 +86,11 @@ func HookDesktopUIProcJob() {
|
||||||
return true
|
return true
|
||||||
})
|
})
|
||||||
|
|
||||||
if 1 < noUIProcCount {
|
if 0 < noUIProcCount {
|
||||||
logging.LogInfof("no active UI proc, exit kernel process now")
|
logging.LogInfof("no active UI proc count [%d]", noUIProcCount)
|
||||||
Close(false, 1)
|
if 1 < noUIProcCount {
|
||||||
|
logging.LogInfof("confirmed no active UI proc, exit kernel process now")
|
||||||
|
Close(false, 1)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue