refactor: optimize profile change notifications to use references

This commit is contained in:
Tunglies
2026-02-20 17:58:04 +08:00
parent 5f573ca2d6
commit 119aaee546
5 changed files with 25 additions and 28 deletions
+4 -4
View File
@@ -409,12 +409,12 @@ impl Timer {
}
/// Emit update events for frontend notification
fn emit_update_event(_uid: &str, _is_start: bool) {
fn emit_update_event(uid: &String, is_start: bool) {
{
if _is_start {
super::handle::Handle::notify_profile_update_started(_uid.into());
if is_start {
super::handle::Handle::notify_profile_update_started(uid);
} else {
super::handle::Handle::notify_profile_update_completed(_uid.into());
super::handle::Handle::notify_profile_update_completed(uid);
}
}
}