This commit is contained in:
huzibaca 2024-12-28 06:05:09 +08:00
parent 3f02859203
commit 542baf9d69
No known key found for this signature in database
GPG Key ID: D4364EE4851DC302

View File

@ -400,6 +400,7 @@ const ProfilePage = () => {
onEdit={() => viewerRef.current?.edit(item)} onEdit={() => viewerRef.current?.edit(item)}
onSave={async (prev, curr) => { onSave={async (prev, curr) => {
if (prev !== curr && profiles.current === item.uid) { if (prev !== curr && profiles.current === item.uid) {
await onEnhance(false);
await restartCore(); await restartCore();
Notice.success(t("Clash Core Restarted"), 1000); Notice.success(t("Clash Core Restarted"), 1000);
} }