refactor(profile): call the core reload directly

This commit is contained in:
Tunglies
2026-12-03 19:38:46 +08:00
parent 651f297785
commit 35dbb3716d
3 changed files with 8 additions and 9 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ pub async fn get_profiles() -> CmdResult<SharedDraft<IProfiles>> {
#[tauri::command]
#[specta::specta]
pub async fn enhance_profiles() -> CmdResult<ValidationOutcome> {
match feat::enhance_profiles().await {
match CoreManager::global().update_config_forced().await {
Ok(outcome) if outcome.is_valid() => {
handle::Handle::refresh_clash();
Ok(outcome)