project panel: Remove extra separator when "Rename" is hidden (#41639)

Closes https://github.com/zed-industries/zed/issues/41633

Release Notes:

- N/A
This commit is contained in:
Danilo Leal
2025-10-31 13:55:08 +00:00
committed by GitHub
parent f2ce06c7b0
commit 1f938c08d2
+1 -2
View File
@@ -1038,9 +1038,8 @@ impl ProjectPanel {
"Copy Relative Path",
Box::new(zed_actions::workspace::CopyRelativePath),
)
.separator()
.when(!should_hide_rename, |menu| {
menu.action("Rename", Box::new(Rename))
menu.separator().action("Rename", Box::new(Rename))
})
.when(!is_root && !is_remote, |menu| {
menu.action("Trash", Box::new(Trash { skip_prompt: false }))