This commit is contained in:
Jonathan Kelley committed 2023-07-18 18:23:55 -07:00
1 parent 41c4b57984
commit 4e278fead5
1 file changed
+14 -14
+14 -14
View File
@@ -51,26 +51,26 @@ fn get_file_event_for_file(
} }
#[cfg(not(any( #[cfg(not(any(
target_os = "windows", target_os = "windows",
target_os = "macos", target_os = "macos",
target_os = "linux", target_os = "linux",
target_os = "dragonfly", target_os = "dragonfly",
target_os = "freebsd", target_os = "freebsd",
target_os = "netbsd", target_os = "netbsd",
target_os = "openbsd" target_os = "openbsd"
)))] )))]
pub(crate) fn get_file_event(_request: &FileDialogRequest) -> Vec<PathBuf> { pub(crate) fn get_file_event(_request: &FileDialogRequest) -> Vec<PathBuf> {
vec![] vec![]
} }
#[cfg(any( #[cfg(any(
target_os = "windows", target_os = "windows",
target_os = "macos", target_os = "macos",
target_os = "linux", target_os = "linux",
target_os = "dragonfly", target_os = "dragonfly",
target_os = "freebsd", target_os = "freebsd",
target_os = "netbsd", target_os = "netbsd",
target_os = "openbsd" target_os = "openbsd"
))] ))]
pub(crate) fn get_file_event(request: &FileDialogRequest) -> Vec<PathBuf> { pub(crate) fn get_file_event(request: &FileDialogRequest) -> Vec<PathBuf> {
let dialog = rfd::FileDialog::new(); let dialog = rfd::FileDialog::new();