Tidy up some broken menu items (#18306)

Release Notes:

- ssh-remoting: Don't show "reveal in finder" in menu
This commit is contained in:
Conrad Irwin 2024-09-24 15:37:09 -06:00 committed by GitHub
parent 2d71c36ad3
commit 5045f984a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 5 deletions

View file

@ -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,