mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-19 08:31:35 +03:00
93c8a77b34
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
13 lines
637 B
Markdown
13 lines
637 B
Markdown
---
|
|
'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 just `Manager::emit` and will now both trigger the events on JS side as well as Rust.
|
|
- Removed `Manager::trigger_global`, use `Manager::emit`
|
|
- Added `Manager::emit_filter`.
|
|
- Removed `Window::emit`, and moved the implementation to `Manager::emit`.
|
|
- Removed `Window::emit_and_trigger` and `Window::trigger`, use `Window::emit` instead.
|
|
- Changed `Window::emit_to` to only trigger the target window listeners so it won't be catched by `Manager::listen_global`
|