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
|
@ -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(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue