From 5e10c0a1b60c8de88b1d909a517abef729553ae7 Mon Sep 17 00:00:00 2001 From: Simon Hyll Date: Wed, 23 Aug 2023 02:36:08 +0200 Subject: [PATCH 1/2] merge --- plugins/fs/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { From 9305971d5c7615473a7c3b0f51dcaaeb5454502f Mon Sep 17 00:00:00 2001 From: Simon Hyll Date: Wed, 23 Aug 2023 02:31:09 +0200 Subject: [PATCH 2/2] chore: added changefile --- .changes/fix-tuple-to-struct-variant.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changes/fix-tuple-to-struct-variant.md 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.