diff --git a/crates/ui-egui/src/io/open.rs b/crates/ui-egui/src/io/open.rs index 53fb450c93..f22c0b9609 100644 --- a/crates/ui-egui/src/io/open.rs +++ b/crates/ui-egui/src/io/open.rs @@ -641,7 +641,7 @@ fn open_file_with(app: &mut VectorcraftApp, path: &str, background: bool, p: &Va if let Some(r) = try_activate_open_document(app, path, canonical.as_deref())? { return Ok(r); } - if app.opening.pending.iter().any(|p| same(&p.path)) || app.opening.converting.iter().any(|c| c.path.as_deref().is_some_and(|p| same(p))) { + if app.opening.pending.iter().any(|p| same(&p.path)) || app.opening.converting.iter().any(|c| c.path.as_deref().is_some_and(&same)) { return Ok(Value::Null); } // A shortcut set is read by Import Shortcut Set, up to its reader's cap.