Introduce reveal_path in Platform
And implement it for MacPlatform, and instead of using an external process to run `open`, use the NSWorkspace selectFile instance method.
This commit is contained in:
parent
9143790602
commit
015b8db1c3
5 changed files with 19 additions and 14 deletions
|
@ -65,6 +65,7 @@ pub trait Platform: Send + Sync {
|
|||
fn write_to_clipboard(&self, item: ClipboardItem);
|
||||
fn read_from_clipboard(&self) -> Option<ClipboardItem>;
|
||||
fn open_url(&self, url: &str);
|
||||
fn reveal_path(&self, path: &Path);
|
||||
|
||||
fn write_credentials(&self, url: &str, username: &str, password: &[u8]) -> Result<()>;
|
||||
fn read_credentials(&self, url: &str) -> Result<Option<(String, Vec<u8>)>>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue