mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 13:10:30 +08:00
Revert "fix: selection loss in light mode"
This reverts commit e176f6db14941c686fdb40f359b1dd039e8b28c2.
This commit is contained in:
parent
dfbe11deb4
commit
75db218888
@ -144,7 +144,7 @@ export async function startCore(detached = false): Promise<Promise<void>[]> {
|
|||||||
corePath,
|
corePath,
|
||||||
['-d', diffWorkDir ? mihomoProfileWorkDir(current) : mihomoWorkDir(), ctlParam, dynamicIpcPath],
|
['-d', diffWorkDir ? mihomoProfileWorkDir(current) : mihomoWorkDir(), ctlParam, dynamicIpcPath],
|
||||||
{
|
{
|
||||||
detached: true,
|
detached: detached,
|
||||||
stdio: detached ? 'ignore' : undefined,
|
stdio: detached ? 'ignore' : undefined,
|
||||||
env: env
|
env: env
|
||||||
}
|
}
|
||||||
@ -378,7 +378,7 @@ export async function restartCore(): Promise<void> {
|
|||||||
|
|
||||||
export async function keepCoreAlive(): Promise<void> {
|
export async function keepCoreAlive(): Promise<void> {
|
||||||
try {
|
try {
|
||||||
if (!child) await startCore(true)
|
await startCore(true)
|
||||||
if (child && child.pid) {
|
if (child && child.pid) {
|
||||||
await writeFile(path.join(dataDir(), 'core.pid'), child.pid.toString())
|
await writeFile(path.join(dataDir(), 'core.pid'), child.pid.toString())
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user