Apply Image: name the target's source channel row Channel

The target's own Channel row was labelled Source Channel while another source document's was Channel; both read Channel now, as in the reference (#14480).
This commit is contained in:
qvest-ssels committed 2026-11-24 11:06:20 +01:00
1 parent bcf37c0b54
commit 46546b8dc9
2 files changed
+12 -1

No files matched your search

@@ -162,6 +162,17 @@ fn layer_and_channel_follow_the_chosen_document() {
assert!(shown.get("source").is_none(), "the target sends the flat keys: {shown}");
}
#[test]
fn the_source_rows_read_layer_and_channel_for_every_document() {
let (mut app, _) = five_documents();
let source = index_of(&app, "source");
let (params, _) = params_for(&mut app, APPLY).unwrap();
let label = |key: &str| params.iter().find(|p| p.key == key).map(|p| p.label.as_str().to_owned());
assert_eq!(label("sourceChannel").as_deref(), Some("Channel"));
assert_eq!(label(&channel_key(source)).as_deref(), Some("Channel"));
assert_eq!(label("sourceLayer").as_deref(), Some("Layer"));
}
#[test]
fn the_target_line_names_the_target() {
let (mut app, _) = five_documents();
@@ -637,7 +637,7 @@ fn channel_form(app: &PhotocraftApp, id: &str) -> Option<(Vec<Param>, DialogFiel
// Scale and Offset only affect Add and Subtract.
rows.extend([
on_target(choice("sourceLayer", tl!("Layer"), channels(&layers), &layer)),
on_target(choice("sourceChannel", tl!("Source Channel"), channels(&load), &chans[0])),
on_target(choice("sourceChannel", tl!("Channel"), channels(&load), &chans[0])),
]);
rows.extend(apply_image_other_source_rows(app));
rows.extend([