🎨 改进桌面端退出监控后台任务
This commit is contained in:
parent
98230a6f90
commit
6e56393ab9
1 changed files with 5 additions and 0 deletions
|
@ -51,8 +51,13 @@ func HookDesktopUIProcJob() {
|
|||
return
|
||||
}
|
||||
|
||||
if 0 < util.CountSessions() {
|
||||
return
|
||||
}
|
||||
|
||||
uiProcNames := []string{"siyuan", "electron"}
|
||||
existUIProc := false
|
||||
|
||||
util.UIProcessIDs.Range(func(uiProcIDArg, _ interface{}) bool {
|
||||
uiProcID, err := strconv.Atoi(uiProcIDArg.(string))
|
||||
if nil != err {
|
||||
|
|
Loading…
Add table
Reference in a new issue