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:
Petros Amoiridis 2023-02-20 18:57:37 +02:00
parent efafd1d8d3
commit 4bb986b3be
No known key found for this signature in database
6 changed files with 57 additions and 24 deletions

View file

@ -92,6 +92,8 @@ impl super::ForegroundPlatform for ForegroundPlatform {
*self.last_prompt_for_new_path_args.borrow_mut() = Some((path.to_path_buf(), done_tx));
done_rx
}
fn reveal_path(&self, _: &Path) {}
}
pub fn platform() -> Platform {
@ -173,8 +175,6 @@ impl super::Platform for Platform {
fn open_url(&self, _: &str) {}
fn reveal_path(&self, _: &Path) {}
fn write_credentials(&self, _: &str, _: &str, _: &[u8]) -> Result<()> {
Ok(())
}