mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-25 03:33:36 +03:00
feat(core): recursive asset scope on directory file-drop event (#8864)
* 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
This commit is contained in:
parent
3cee26a58a
commit
11a5816bdf
@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri": 'patch:enhance'
|
||||
---
|
||||
|
||||
A file-drop now allows sub-directories recursively when the path is a directory.
|
@ -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 };
|
||||
|
Loading…
Reference in New Issue
Block a user