mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-21 01:32:03 +03:00
93c8a77b34
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
637 B
637 B
tauri |
---|
major:breaking |
The event system APIS on Rust is recieving a few changes for consistency and quality of life improvements:
- Renamed
Manager::emit_all
to justManager::emit
and will now both trigger the events on JS side as well as Rust. - Removed
Manager::trigger_global
, useManager::emit
- Added
Manager::emit_filter
. - Removed
Window::emit
, and moved the implementation toManager::emit
. - Removed
Window::emit_and_trigger
andWindow::trigger
, useWindow::emit
instead. - Changed
Window::emit_to
to only trigger the target window listeners so it won't be catched byManager::listen_global