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:
parent
268ac4c047
commit
c16dfc1a39
6 changed files with 13 additions and 8 deletions
|
@ -31,7 +31,6 @@ test-support = [
|
|||
auto_update.workspace = true
|
||||
call.workspace = true
|
||||
client.workspace = true
|
||||
command_palette.workspace = true
|
||||
feedback.workspace = true
|
||||
feature_flags.workspace = true
|
||||
gpui.workspace = true
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue