Add ability to open files with system default application (#17231)
This commit is contained in:
parent
06142f975b
commit
ae3880e71a
10 changed files with 63 additions and 1 deletions
|
@ -657,6 +657,11 @@ impl AppContext {
|
|||
self.platform.reveal_path(path)
|
||||
}
|
||||
|
||||
/// Opens the specified path with the system's default application.
|
||||
pub fn open_with_system(&self, path: &Path) {
|
||||
self.platform.open_with_system(path)
|
||||
}
|
||||
|
||||
/// Returns whether the user has configured scrollbars to auto-hide at the platform level.
|
||||
pub fn should_auto_hide_scrollbars(&self) -> bool {
|
||||
self.platform.should_auto_hide_scrollbars()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue