|
|
@ -506,7 +506,6 @@ impl<R: Runtime> FileDialogBuilder<R> {
|
|
|
|
/// Ok(())
|
|
|
|
/// Ok(())
|
|
|
|
/// });
|
|
|
|
/// });
|
|
|
|
/// ```
|
|
|
|
/// ```
|
|
|
|
#[cfg(any(desktop, target_os = "ios", target_os = "android"))]
|
|
|
|
|
|
|
|
pub fn pick_folder<F: FnOnce(Option<FilePath>) + Send + 'static>(self, f: F) {
|
|
|
|
pub fn pick_folder<F: FnOnce(Option<FilePath>) + Send + 'static>(self, f: F) {
|
|
|
|
pick_folder(self, f)
|
|
|
|
pick_folder(self, f)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -528,7 +527,6 @@ impl<R: Runtime> FileDialogBuilder<R> {
|
|
|
|
/// Ok(())
|
|
|
|
/// Ok(())
|
|
|
|
/// });
|
|
|
|
/// });
|
|
|
|
/// ```
|
|
|
|
/// ```
|
|
|
|
#[cfg(any(desktop, target_os = "ios", target_os = "android"))]
|
|
|
|
|
|
|
|
pub fn pick_folders<F: FnOnce(Option<Vec<FilePath>>) + Send + 'static>(self, f: F) {
|
|
|
|
pub fn pick_folders<F: FnOnce(Option<Vec<FilePath>>) + Send + 'static>(self, f: F) {
|
|
|
|
pick_folders(self, f)
|
|
|
|
pick_folders(self, f)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -611,7 +609,6 @@ impl<R: Runtime> FileDialogBuilder<R> {
|
|
|
|
/// // the folder path is `None` if the user closed the dialog
|
|
|
|
/// // the folder path is `None` if the user closed the dialog
|
|
|
|
/// }
|
|
|
|
/// }
|
|
|
|
/// ```
|
|
|
|
/// ```
|
|
|
|
#[cfg(any(desktop, target_os = "ios", target_os = "android"))]
|
|
|
|
|
|
|
|
pub fn blocking_pick_folder(self) -> Option<FilePath> {
|
|
|
|
pub fn blocking_pick_folder(self) -> Option<FilePath> {
|
|
|
|
blocking_fn!(self, pick_folder)
|
|
|
|
blocking_fn!(self, pick_folder)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -631,7 +628,6 @@ impl<R: Runtime> FileDialogBuilder<R> {
|
|
|
|
/// // the folder paths value is `None` if the user closed the dialog
|
|
|
|
/// // the folder paths value is `None` if the user closed the dialog
|
|
|
|
/// }
|
|
|
|
/// }
|
|
|
|
/// ```
|
|
|
|
/// ```
|
|
|
|
#[cfg(any(desktop, target_os = "ios", target_os = "android"))]
|
|
|
|
|
|
|
|
pub fn blocking_pick_folders(self) -> Option<Vec<FilePath>> {
|
|
|
|
pub fn blocking_pick_folders(self) -> Option<Vec<FilePath>> {
|
|
|
|
blocking_fn!(self, pick_folders)
|
|
|
|
blocking_fn!(self, pick_folders)
|
|
|
|
}
|
|
|
|
}
|
|
|
|