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 12:47:18 -05:00 committed by GitHub
parent 2256c21841
commit 9705764892
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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);
}),
),
)