fix(profile): refresh timer after profile deletion to ensure state consistency

This commit is contained in:
Tunglies 2026-03-28 01:40:39 +08:00
parent c8f737d44e
commit add2c1036b
No known key found for this signature in database
GPG Key ID: B9B01B389469B3E8

View File

@ -185,6 +185,7 @@ pub async fn delete_profile(index: String) -> CmdResult {
}
}
}
Timer::global().refresh().await.stringify_err()?;
Ok(())
}