From 0669f7a10b21a8a895d1372c94ec34f4d90d58f3 Mon Sep 17 00:00:00 2001 From: huzibaca Date: Tue, 24 Dec 2024 02:22:46 +0800 Subject: [PATCH] chore: after saving the configuration file, restart the core --- src/pages/profiles.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/profiles.tsx b/src/pages/profiles.tsx index 41e81b2c..e8d5d187 100644 --- a/src/pages/profiles.tsx +++ b/src/pages/profiles.tsx @@ -27,6 +27,7 @@ import { useTranslation } from "react-i18next"; import { importProfile, enhanceProfiles, + restartCore, getRuntimeLogs, deleteProfile, updateProfile, @@ -399,7 +400,8 @@ const ProfilePage = () => { onEdit={() => viewerRef.current?.edit(item)} onSave={async (prev, curr) => { if (prev !== curr && profiles.current === item.uid) { - await onEnhance(false); + await restartCore(); + Notice.success(t("Clash Core Restarted"), 1000); } }} onDelete={() => onDelete(item.uid)}