We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4298c0c commit 3a59f5fCopy full SHA for 3a59f5f
2 files changed
.changes/unlisten.md
@@ -0,0 +1,5 @@
1
+---
2
+"tauri": patch
3
4
+
5
+Adds `unlisten` function to the `Window` struct.
core/tauri/src/window.rs
@@ -271,6 +271,11 @@ impl<R: Runtime> Window<R> {
271
self.manager.listen(event.into(), Some(label), handler)
272
}
273
274
+ /// Unlisten to an event on this window.
275
+ pub fn unlisten(&self, handler_id: EventHandler) {
276
+ self.manager.unlisten(handler_id)
277
+ }
278
279
/// Listen to a an event on this window a single time.
280
pub fn once<F>(&self, event: impl Into<String>, handler: F) -> EventHandler
281
where
0 commit comments