Skip to content

Commit

Permalink
feat(core): recursive asset scope on directory file-drop event (#8864)
Browse files Browse the repository at this point in the history
* allow recursive asset scope on directory file-drop events

* Create allow-recursive-asset-scope-on-file-drop-directory.md

* Update .changes/allow-recursive-asset-scope-on-file-drop-directory.md
  • Loading branch information
i-c-b authored Feb 15, 2024
1 parent 3cee26a commit 11a5816
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri": 'patch:enhance'
---

A file-drop now allows sub-directories recursively when the path is a directory.
2 changes: 1 addition & 1 deletion core/tauri/src/manager/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ fn on_window_event<R: Runtime>(
if path.is_file() {
let _ = scopes.allow_file(path);
} else {
let _ = scopes.allow_directory(path, false);
let _ = scopes.allow_directory(path, true);
}
}
let payload = FileDropPayload { paths, position };
Expand Down

0 comments on commit 11a5816

Please sign in to comment.