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:
@@ -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 }))
|
||||
|
||||
Reference in New Issue
Block a user