mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🎨 改进桌面端退出监控后台任务
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if 0 < util.CountSessions() {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
uiProcNames := []string{"siyuan", "electron"}
|
uiProcNames := []string{"siyuan", "electron"}
|
||||||
existUIProc := false
|
existUIProc := false
|
||||||
|
|
||||||
util.UIProcessIDs.Range(func(uiProcIDArg, _ interface{}) bool {
|
util.UIProcessIDs.Range(func(uiProcIDArg, _ interface{}) bool {
|
||||||
uiProcID, err := strconv.Atoi(uiProcIDArg.(string))
|
uiProcID, err := strconv.Atoi(uiProcIDArg.(string))
|
||||||
if nil != err {
|
if nil != err {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue