From 75db2188889104bd9bf3f4a8e0e557d2e3cfed1a Mon Sep 17 00:00:00 2001 From: ezequielnick <107352853+ezequielnick@users.noreply.github.com> Date: Fri, 5 Sep 2025 21:54:28 +0800 Subject: [PATCH] Revert "fix: selection loss in light mode" This reverts commit e176f6db14941c686fdb40f359b1dd039e8b28c2. --- src/main/core/manager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/core/manager.ts b/src/main/core/manager.ts index 7c2ca6f..72a7896 100644 --- a/src/main/core/manager.ts +++ b/src/main/core/manager.ts @@ -144,7 +144,7 @@ export async function startCore(detached = false): Promise[]> { corePath, ['-d', diffWorkDir ? mihomoProfileWorkDir(current) : mihomoWorkDir(), ctlParam, dynamicIpcPath], { - detached: true, + detached: detached, stdio: detached ? 'ignore' : undefined, env: env } @@ -378,7 +378,7 @@ export async function restartCore(): Promise { export async function keepCoreAlive(): Promise { try { - if (!child) await startCore(true) + await startCore(true) if (child && child.pid) { await writeFile(path.join(dataDir(), 'core.pid'), child.pid.toString()) }