Changed underlying directory attribute to webkitdirectory, fixed attribute parsing to properly toggle it.

This commit is contained in:
Kaid committed 2023-06-06 08:06:27 +08:00
1 parent 37a8fb5391
commit 277436f673
5 files changed
+20 -5

No files matched your search

+4 -1
View File
@@ -21,7 +21,10 @@ fn get_file_event_for_folder(request: &FileDiologRequest, dialog: rfd::FileDialo
}
}
fn get_file_event_for_file(request: &FileDiologRequest, mut dialog: rfd::FileDialog) -> Vec<PathBuf> {
fn get_file_event_for_file(
request: &FileDiologRequest,
mut dialog: rfd::FileDialog,
) -> Vec<PathBuf> {
let filters: Vec<_> = request
.accept
.as_deref()