Compare commits

...

2 Commits

Author SHA1 Message Date
Memory
e176f6db14
fix: selection loss in light mode 2025-08-17 13:38:49 +08:00
Memory
68dd3fd01a
chore: tweak MdContentPaste 2025-08-17 13:38:04 +08:00
2 changed files with 4 additions and 3 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: detached,
detached: true,
stdio: detached ? 'ignore' : undefined,
env: env
}
@ -218,7 +218,7 @@ export async function restartCore(): Promise<void> {
export async function keepCoreAlive(): Promise<void> {
try {
await startCore(true)
if (!child) 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="sm"
size="md"
isIconOnly
variant="light"
onPress={() => {
@ -242,6 +242,7 @@ const Profiles: React.FC = () => {
setUrl(text)
})
}}
className="mr-2"
>
<MdContentPaste className="text-lg" />
</Button>