From 52b7a7fed2fe0ce2e11bc464af14bce422513a53 Mon Sep 17 00:00:00 2001 From: lashman Date: Fri, 6 Mar 2026 14:59:29 +0200 Subject: [PATCH] Wire help button to show contextual step help dialog Connect the header bar help button to the existing show_step_help function, showing context-aware help for the current wizard step. Remove duplicate function definition. --- pixstrip-gtk/src/app.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pixstrip-gtk/src/app.rs b/pixstrip-gtk/src/app.rs index b6e5357..eab53e6 100644 --- a/pixstrip-gtk/src/app.rs +++ b/pixstrip-gtk/src/app.rs @@ -395,6 +395,16 @@ fn build_ui(app: &adw::Application) { }); } + // Wire help button to show contextual help for current step + { + let wizard = ui.state.wizard.clone(); + let window_ref = window.clone(); + help_button.connect_clicked(move |_| { + let step = wizard.borrow().current_step; + show_step_help(&window_ref, step); + }); + } + setup_window_actions(&window, &ui); update_nav_buttons( &ui.state.wizard.borrow(),