Wire up step buttons: Browse, preset cards, output directory picker

- Browse Files button triggers win.add-files action
- Add More button in loaded state triggers win.add-files action
- Preset card activation (click) advances to next wizard step
- Custom workflow card activation advances to next step
- Choose output folder button opens folder dialog
- Output step shows current image count when navigated to
- Clean up dead code in update_count_in_box
This commit is contained in:
2026-03-06 11:41:46 +02:00
parent b6aae711ec
commit c20e0db2ff
4 changed files with 71 additions and 7 deletions

View File

@@ -36,6 +36,11 @@ pub fn build_workflow_page() -> adw::NavigationPage {
builtin_flow.append(&card);
}
// When a preset card is activated, advance to the next step
builtin_flow.connect_child_activated(|flow, _child| {
flow.activate_action("win.next-step", None).ok();
});
builtin_group.add(&builtin_flow);
content.append(&builtin_group);
@@ -52,6 +57,9 @@ pub fn build_workflow_page() -> adw::NavigationPage {
.min_children_per_line(2)
.build();
custom_flow.append(&custom_card);
custom_flow.connect_child_activated(|flow, _child| {
flow.activate_action("win.next-step", None).ok();
});
custom_group.add(&custom_flow);
content.append(&custom_group);