mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 05:00:30 +08:00
Compare commits
No commits in common. "e176f6db14941c686fdb40f359b1dd039e8b28c2" and "ee19749009a002553a2f9f9ff98c78c24833a1f6" have entirely different histories.
e176f6db14
...
ee19749009
@ -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())
|
||||
}
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user