diff --git a/crates/ui-egui/src/dialogs/export_dialog/layer_name_sanitise_tests.rs b/crates/ui-egui/src/dialogs/export_dialog/layer_name_sanitise_tests.rs index 92e9a7c62ab..f4ceaad0c2b 100644 --- a/crates/ui-egui/src/dialogs/export_dialog/layer_name_sanitise_tests.rs +++ b/crates/ui-egui/src/dialogs/export_dialog/layer_name_sanitise_tests.rs @@ -27,7 +27,7 @@ fn suggested_for_selection(name: &str, include_empty: bool) -> (String, String) if include_empty { app.session.restore_layer_selection(Some(layer), &[empty, layer], None).unwrap(); } - app.run("layer.quickExportAsPng", json!({})).unwrap(); + crate::menus::invoke(&mut app, &egui::Context::default(), "layer.quickExportAsPng", Value::Null).unwrap(); let asked = files.requests(); let [request] = asked.as_slice() else { panic!("one Save dialog: {asked:?}") }; assert_eq!(request.kind, PickKind::Save); diff --git a/docs/control-protocol.md b/docs/control-protocol.md index 67bb89fcdc3..311e531b075 100644 --- a/docs/control-protocol.md +++ b/docs/control-protocol.md @@ -813,9 +813,10 @@ else}` is Photoshop's Insert Conditional as a step: it tests the document or act and plays the matching action by name, failing the caller when that action fails. Layer-panel **Quick Export as PNG** exports each selected layer or group with exportable pixels -as a separate PNG. With several outputs, desktop asks for one folder and the web downloads each -file. Each PNG uses its source name with unsafe filename characters replaced. Duplicate names -and occupied desktop filenames get numbered alternatives. A single output uses a Save dialog. +as a separate PNG. Each PNG uses its source name with unsafe filename characters replaced. +For several outputs, desktop asks for one folder and the web downloads each file. Duplicate +names get numbered alternatives, as do occupied filenames on desktop. A single output uses +a Save dialog that lets you confirm replacing an existing file. Multiple selected sources are captured before opening the picker. ## Shared panel docking