mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🐛 桌面端系统睡眠唤醒后内核可能会自动退出 Fix https://github.com/siyuan-note/siyuan/issues/7323
This commit is contained in:
parent
eaaeac6970
commit
d316e4abc3
1 changed files with 6 additions and 2 deletions
|
|
@ -105,7 +105,9 @@ func getAttachedUIProcCount() (ret int) {
|
||||||
procName := strings.ToLower(proc.Executable())
|
procName := strings.ToLower(proc.Executable())
|
||||||
uiProcOk := false
|
uiProcOk := false
|
||||||
for _, name := range uiProcNames {
|
for _, name := range uiProcNames {
|
||||||
uiProcOk = strings.Contains(procName, name)
|
if uiProcOk = strings.Contains(procName, name); uiProcOk {
|
||||||
|
break
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if uiProcOk {
|
if uiProcOk {
|
||||||
ret++
|
ret++
|
||||||
|
|
@ -122,7 +124,9 @@ func getUIProcCount() (ret int) {
|
||||||
procName := strings.ToLower(proc.Executable())
|
procName := strings.ToLower(proc.Executable())
|
||||||
uiProcOk := false
|
uiProcOk := false
|
||||||
for _, name := range uiProcNames {
|
for _, name := range uiProcNames {
|
||||||
uiProcOk = strings.Contains(procName, name)
|
if uiProcOk = strings.Contains(procName, name); uiProcOk {
|
||||||
|
break
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if uiProcOk {
|
if uiProcOk {
|
||||||
ret++
|
ret++
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue