From 970576489203913db14daa1be327977b624abe64 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Mon, 27 Jan 2025 12:47:18 -0500 Subject: [PATCH] assistant2: Fix opening the configuration via the button (#23732) This PR fixes an issues where clicking the "Open Configuration" button wasn't opening the configuration. We needed to change how the action was dispatched after #22632. Release Notes: - N/A --- crates/assistant2/src/assistant_panel.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/assistant2/src/assistant_panel.rs b/crates/assistant2/src/assistant_panel.rs index 8f42e53842609aaf3d2ae8cd82ec8eadb47e717d..b6aa52b5ceba14e8d4839a3fcb9b30a87ec2d4e1 100644 --- a/crates/assistant2/src/assistant_panel.rs +++ b/crates/assistant2/src/assistant_panel.rs @@ -679,8 +679,8 @@ impl AssistantPanel { .icon_size(IconSize::Small) .style(ButtonStyle::Subtle) .tooltip(Tooltip::text("Configure Assistant")) - .on_click(move |_event, _window, cx| { - cx.dispatch_action(&OpenConfiguration); + .on_click(move |_event, window, cx| { + window.dispatch_action(OpenConfiguration.boxed_clone(), cx); }), ), )