Skip to content

Commit

Permalink
Add set_parent docs to synchronous FileDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
PolyMeilex committed May 20, 2021
1 parent 1606a70 commit 4c990bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dialog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ impl FileDialog {
}

#[cfg(feature = "parent")]
/// Set parent windows explicitly (optional)
/// Suported in: `macos` and `windows`
pub fn set_parent<W: HasRawWindowHandle>(mut self, parent: &W) -> Self {
self.parent = Some(parent.raw_window_handle());
self
Expand Down

0 comments on commit 4c990bb

Please sign in to comment.