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
This commit is contained in:
Marshall Bowers
2025-01-27 17:47:18 +00:00
committed by GitHub
parent 2256c21841
commit 9705764892
+2 -2
View File
@@ -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);
}),
),
)