PhotoCraft: An open-source, photo editor written by scratch in pure Rust
Merge PR #6711: fix(ui): disable Batch without a recorded action
aiongg8d00c31ddfe4
diff --cc crates/ui-egui/src/view_cmds.rsindex ae19bfa6a,b677c5e2f..64239add8--- a/crates/ui-egui/src/view_cmds.rs+++ b/crates/ui-egui/src/view_cmds.rs@@@ -481,10 -476,10 +481,13 @@@ fn is_enabled_with_engine(app: &Photocr|| (doc && matches!(&i["window.arrange.".len()..], "floatAllInWindows" | "cascade" | "tile" | "tileAllVertically" | "tileAllHorizontally"))}},+ // Embedded placement reads the picker's bytes on every platform. Linked placement keeps+ // the engine's native filesystem guard because its source must remain reachable.+ "file.placeEmbedded" => doc && app.services.file_dialog.is_some(),+ // Batch's dialog is built from an Actions-panel action. Keep it disabled until one+ // exists instead of opening a menu item that can only report "record an action".- "file.automate.batch" => crate::actions::selected_action(app).is_some(),- i if wraps(i) => app.session.is_enabled(i),++ "file.automate.batch" => crate::actions::selected_action(app).is_some() && engine_enabled(),+ i if wraps(i) => engine_enabled(),_ => true,})}