refactor: do not trigger autobackup on profile change (#6464)

* refactor: do not trigger autobackup on profile change

* chore: i18n
This commit is contained in:
Slinetrac
2026-03-11 06:56:15 +00:00
committed by GitHub
parent 20a523b3d6
commit 7ebf27ba52
27 changed files with 35 additions and 41 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ pub async fn save_profile_file(index: String, file_data: Option<String>) -> CmdR
let backup_trigger = match index.as_str() {
"Merge" => Some(AutoBackupTrigger::GlobalMerge),
"Script" => Some(AutoBackupTrigger::GlobalScript),
_ => Some(AutoBackupTrigger::ProfileChange),
_ => None,
};
// 在异步操作前获取必要元数据并释放锁