LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust
Local: use ? for the browse path (clippy)
Brandon Thomas4267a68b3094
diff --git a/crates/ui-egui/src/menus.rs b/crates/ui-egui/src/menus.rsindex 8bf3778eb..df3acda8d 100644--- a/crates/ui-egui/src/menus.rs+++ b/crates/ui-egui/src/menus.rs@@ -844,7 +844,7 @@ pub fn run_ui_command(app: &mut LightcraftApp, id: &str, p: &Value) -> Option<Re}"library.browse" if !cfg!(target_arch = "wasm32") => {// listed and read in the background (see `import::browse`)- let Some(path) = p.get("path").and_then(Value::as_str) else { return None };+ let path = p.get("path").and_then(Value::as_str)?;crate::import::browse(app, path, p.get("subfolders").and_then(Value::as_bool))}"file.addPhotos" => {