diff --git a/.changes/fix-tuple-to-struct-variant.md b/.changes/fix-tuple-to-struct-variant.md new file mode 100644 index 000000000..7ce160665 --- /dev/null +++ b/.changes/fix-tuple-to-struct-variant.md @@ -0,0 +1,5 @@ +--- +window: patch +--- + +`FileDropEvent` has been changed from a struct variant to a tuple variant. diff --git a/plugins/fs/src/lib.rs b/plugins/fs/src/lib.rs index aab60ce99..966f12881 100644 --- a/plugins/fs/src/lib.rs +++ b/plugins/fs/src/lib.rs @@ -83,7 +83,7 @@ pub fn init() -> TauriPlugin> { .on_event(|app, event| { if let RunEvent::WindowEvent { label: _, - event: WindowEvent::FileDrop(FileDropEvent::Dropped(paths)), + event: WindowEvent::FileDrop(FileDropEvent::Dropped { paths, .. }), .. } = event {