oscartbeaumont / tauri-specta

Completely typesafe Tauri commands
MIT License
289 stars 26 forks source link

fix: misalignment of Event emit_to args #68

Closed linden-dg closed 5 months ago

linden-dg commented 5 months ago

The window and event labels were mixed up when passed to the tauri app handle, causing the event to be emitted to the event label, rather than the window.

As per https://docs.rs/tauri/latest/tauri/trait.Manager.html#method.emit_to the window label should be the first argument in the handle.emit_to, and the event should be the second, but these were incorrectly reversed.

oscartbeaumont commented 5 months ago

Thanks!