wip
This commit is contained in:
parent
5550e80c4e
commit
68a1c7ce4c
5 changed files with 110 additions and 111 deletions
|
@ -1675,7 +1675,7 @@ impl<'a, 'w, V: 'static> ViewContext<'a, 'w, V> {
|
|||
|
||||
pub fn on_release(
|
||||
&mut self,
|
||||
mut on_release: impl FnMut(&mut V, &mut WindowContext) + Send + 'static,
|
||||
on_release: impl FnOnce(&mut V, &mut WindowContext) + Send + 'static,
|
||||
) -> Subscription {
|
||||
let window_handle = self.window.handle;
|
||||
self.app.release_listeners.insert(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue