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:
parent
2256c21841
commit
9705764892
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}),
|
||||
),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue