Compare commits

..

No commits in common. "e176f6db14941c686fdb40f359b1dd039e8b28c2" and "ee19749009a002553a2f9f9ff98c78c24833a1f6" have entirely different histories.

2 changed files with 3 additions and 4 deletions

View File

@ -113,7 +113,7 @@ export async function startCore(detached = false): Promise<Promise<void>[]> {
corePath,
['-d', diffWorkDir ? mihomoProfileWorkDir(current) : mihomoWorkDir(), ctlParam, mihomoIpcPath],
{
detached: true,
detached: detached,
stdio: detached ? 'ignore' : undefined,
env: env
}
@ -218,7 +218,7 @@ export async function restartCore(): Promise<void> {
export async function keepCoreAlive(): Promise<void> {
try {
if (!child) await startCore(true)
await startCore(true)
if (child && child.pid) {
await writeFile(path.join(dataDir(), 'core.pid'), child.pid.toString())
}

View File

@ -234,7 +234,7 @@ const Profiles: React.FC = () => {
endContent={
<>
<Button
size="md"
size="sm"
isIconOnly
variant="light"
onPress={() => {
@ -242,7 +242,6 @@ const Profiles: React.FC = () => {
setUrl(text)
})
}}
className="mr-2"
>
<MdContentPaste className="text-lg" />
</Button>