pub fn file_dialog(
        &self,
        kind: StylistFileDialog,
        filter: Option<(&str, &[&str])>,
    ) -> Option<PathBuf> {
        self.file_dialog_function
            .as_ref()
            .map(|f| f(kind, filter))
            .flatten()
    }
/// Calls the file_dialog function and returns a path if it was found.
Calls the file_dialog function and returns a path if it was found.
Calls the file_dialog function and returns a path if it was found .
pub fn file_dialog(
        &self,
        kind: StylistFileDialog,
        filter: Option<(&str, &[&str])>,
    ) -> Option<PathBuf> {
        self.file_dialog_function
            .as_ref()
            .map(|f| f(kind, filter))
            .flatten()
    }
pub fn file_dialog ( & self , kind : StylistFileDialog , filter : Option < ( & str , & [ & str ] ) > , ) -> Option < PathBuf > { self . file_dialog_function . as_ref ( ) . map ( | f | f ( kind , filter ) ) . flatten ( ) }
Calls the file_dialog function and returns a path if it was found.
Calls the file_dialog function and returns a path if it was found .
&self
kind
StylistFileDialog
filter
Option<(&str, &[&str])>