Move reveal_path to ForegroundPlatform
So that we can use spawn to use the OS API call. Co-Authored-By: Antonio Scandurra <me@as-cii.com>
This commit is contained in:
parent
efafd1d8d3
commit
4bb986b3be
6 changed files with 57 additions and 24 deletions
|
@ -792,8 +792,7 @@ impl ProjectPanel {
|
|||
|
||||
fn reveal_in_finder(&mut self, _: &RevealInFinder, cx: &mut ViewContext<Self>) {
|
||||
if let Some((worktree, entry)) = self.selected_entry(cx) {
|
||||
cx.platform()
|
||||
.reveal_path(&worktree.abs_path().join(&entry.path));
|
||||
cx.reveal_path(&worktree.abs_path().join(&entry.path));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue