mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-01-31 00:35:19 +01: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:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user