pane: Fix tooltips of navigation buttons (#17035)

Tooltips for "Go Forward"/"Go Back" did not show the keybindings. Now
they do.

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2024-08-29 00:28:00 +02:00 committed by GitHub
parent 9ca772991f
commit dfd113dfb0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 24 additions and 9 deletions

View file

@ -360,12 +360,7 @@ impl AssistantPanel {
}
}))
.tooltip(move |cx| {
cx.new_view(|cx| {
let keybind =
KeyBinding::for_action_in(&DeployHistory, &focus_handle, cx);
Tooltip::new("Open History").key_binding(keybind)
})
.into()
Tooltip::for_action_in("Open History", &DeployHistory, &focus_handle, cx)
})
.selected(
pane.active_item()