mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 桌面端内核进程根据 Electron 主进程判断是否自动退出 Fix https://github.com/siyuan-note/siyuan/issues/7002
This commit is contained in:
parent
674aba3477
commit
9854969cce
1 changed files with 4 additions and 0 deletions
|
|
@ -58,6 +58,10 @@ func HookDesktopUIProc() {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if nil == proc {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
procName := strings.ToLower(proc.Executable())
|
procName := strings.ToLower(proc.Executable())
|
||||||
for _, name := range uiProcNames {
|
for _, name := range uiProcNames {
|
||||||
if strings.Contains(procName, name) {
|
if strings.Contains(procName, name) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue