mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-15 13:41:39 +03:00
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.studio>
This commit is contained in:
parent
c02337be29
commit
a1d569bbc9
5
.changes/disable-tao-drag-n-drop.md
Normal file
5
.changes/disable-tao-drag-n-drop.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri-runtime-wry": "patch"
|
||||
---
|
||||
|
||||
Disable drag-n-drop of tao based on `fileDropEnabled` value.
|
@ -2844,6 +2844,12 @@ fn create_webview<T: UserEvent>(
|
||||
{
|
||||
window_builder.inner = window_builder.inner.with_fullsize_content_view(true);
|
||||
}
|
||||
#[cfg(windows)]
|
||||
{
|
||||
window_builder.inner = window_builder
|
||||
.inner
|
||||
.with_drag_and_drop(webview_attributes.file_drop_handler_enabled);
|
||||
}
|
||||
|
||||
let is_window_transparent = window_builder.inner.window.transparent;
|
||||
let menu_items = if let Some(menu) = window_builder.menu {
|
||||
|
Loading…
Reference in New Issue
Block a user