title_bar: Remove dependency on command_palette (#21006)

This PR removes the `title_bar` crate's dependency on the
`command_palette`.

The `command_palette::Toggle` action now resides at
`zed_actions::command_palette::Toggle`.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers
2024-11-21 13:37:34 -05:00
committed by GitHub
parent 268ac4c047
commit c16dfc1a39
6 changed files with 13 additions and 8 deletions
+4 -1
View File
@@ -18,7 +18,10 @@ impl Render for ApplicationMenu {
.menu(move |cx| {
ContextMenu::build(cx, move |menu, cx| {
menu.header("Workspace")
.action("Open Command Palette", Box::new(command_palette::Toggle))
.action(
"Open Command Palette",
Box::new(zed_actions::command_palette::Toggle),
)
.when_some(cx.focused(), |menu, focused| menu.context(focused))
.custom_row(move |cx| {
h_flex()