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:
co-authored by
Antonio Scandurra
parent
efafd1d8d3
commit
4bb986b3be
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user