Tidy up some broken menu items (#18306)
Release Notes: - ssh-remoting: Don't show "reveal in finder" in menu
This commit is contained in:
parent
2d71c36ad3
commit
5045f984a9
2 changed files with 10 additions and 5 deletions
|
@ -3906,9 +3906,11 @@ impl Render for OutlinePanel {
|
|||
.on_action(cx.listener(Self::toggle_active_editor_pin))
|
||||
.on_action(cx.listener(Self::unfold_directory))
|
||||
.on_action(cx.listener(Self::fold_directory))
|
||||
.when(project.is_local_or_ssh(), |el| {
|
||||
.when(project.is_local(), |el| {
|
||||
el.on_action(cx.listener(Self::reveal_in_finder))
|
||||
.on_action(cx.listener(Self::open_in_terminal))
|
||||
})
|
||||
.when(project.is_local_or_ssh(), |el| {
|
||||
el.on_action(cx.listener(Self::open_in_terminal))
|
||||
})
|
||||
.on_mouse_down(
|
||||
MouseButton::Right,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue