diff --git a/crates/ui-egui/src/actions.rs b/crates/ui-egui/src/actions.rs index 39c7a404af..7825baaa2f 100644 --- a/crates/ui-egui/src/actions.rs +++ b/crates/ui-egui/src/actions.rs @@ -185,7 +185,7 @@ fn import_actions_bytes(app: &mut PhotocraftApp, bytes: &[u8]) -> Result Result::new(); for (source_name, action) in original.iter().zip(&mut planned) { if let Some(found) = existing.iter().find(|a| { - (a.name == *source_name || a.name.starts_with(&format!("{source_name} (Imported "))) && a.steps == action.steps + (a.name == *source_name || a.name.starts_with(format!("{source_name} (Imported ").as_str())) && a.steps == action.steps }) { corrected.insert(action.name.clone(), found.name.clone()); action.name = found.name.clone();