Hello, I don't know why but I can't have a match that fit the FileDropEvent
let builder = Builder::new("window").on_event(|app_handle, event| match event {
RunEvent::WindowEvent {
event: WindowEvent::Resized(_),
..
} => {
app_handle.emit_all("resized", ()).unwrap();
}
RunEvent::WindowEvent {
event: WindowEvent::FileDrop(FileDropEvent::Dropped(files)),
..
} => {
println!("DropEvent {}", files.len());
I have fileDropEnabled:true in my tauri.conf.json
I've tried in the builder of the application with on_window_event but the event does not get catch and instead I the file is open with the webview (At least during dev)