diff --git a/src/renderer/src/components/settings/mihomo-config.tsx b/src/renderer/src/components/settings/mihomo-config.tsx index bdcc815..b380b81 100644 --- a/src/renderer/src/components/settings/mihomo-config.tsx +++ b/src/renderer/src/components/settings/mihomo-config.tsx @@ -145,9 +145,14 @@ const MihomoConfig: React.FC = () => { size="sm" selectedKeys={new Set([mihomoCpuPriority])} onSelectionChange={async (v) => { - await patchAppConfig({ - mihomoCpuPriority: v.currentKey as Priority - }) + try { + await patchAppConfig({ + mihomoCpuPriority: v.currentKey as Priority + }) + await restartCore() + } catch (e) { + alert(e) + } }} > 实时