feat: enhance profile update handling with manual trigger

This commit is contained in:
Tunglies
2026-02-20 11:12:18 +08:00
parent 7528c238c4
commit e5dd127bcc
4 changed files with 12 additions and 4 deletions
+1 -1
View File
@@ -158,7 +158,7 @@ pub async fn create_profile(item: PrfItem, file_data: Option<String>) -> CmdResu
/// 更新配置文件
#[tauri::command]
pub async fn update_profile(index: String, option: Option<PrfOption>) -> CmdResult {
match feat::update_profile(&index, option.as_ref(), true, true).await {
match feat::update_profile(&index, option.as_ref(), true, true, true).await {
Ok(_) => {
let _: () = Config::profiles().await.apply();
Ok(())