fix: profile auto refresh #5274

This commit is contained in:
Slinetrac
2025-11-01 17:08:17 +08:00
committed by Tunglies
parent b3b8eeb577
commit 9dc50da167
6 changed files with 74 additions and 50 deletions

View File

@@ -180,7 +180,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, Some(true)).await {
match feat::update_profile(index, option, Some(true), Some(true)).await {
Ok(_) => Ok(()),
Err(e) => {
log::error!(target: "app", "{}", e);