Skip to content

Commit 1f938c0

Browse files
authored
project panel: Remove extra separator when "Rename" is hidden (zed-industries#41639)
Closes zed-industries#41633 Release Notes: - N/A
1 parent f2ce06c commit 1f938c0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/project_panel/src/project_panel.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,9 +1038,8 @@ impl ProjectPanel {
10381038
"Copy Relative Path",
10391039
Box::new(zed_actions::workspace::CopyRelativePath),
10401040
)
1041-
.separator()
10421041
.when(!should_hide_rename, |menu| {
1043-
menu.action("Rename", Box::new(Rename))
1042+
menu.separator().action("Rename", Box::new(Rename))
10441043
})
10451044
.when(!is_root && !is_remote, |menu| {
10461045
menu.action("Trash", Box::new(Trash { skip_prompt: false }))

0 commit comments

Comments
 (0)