diff options
author | 2024-08-12 05:12:42 +0200 | |
---|---|---|
committer | 2024-08-12 05:12:42 +0200 | |
commit | 01aa84e41afa556fd4e82ef11f2f55cf443ef1aa (patch) | |
tree | d794bc53ecd2f8405ec6128f7d730042179e1635 /winit | |
parent | 7740c35a2a0f162b04f78075afa5a8e2448a782c (diff) | |
download | iced-01aa84e41afa556fd4e82ef11f2f55cf443ef1aa.tar.gz iced-01aa84e41afa556fd4e82ef11f2f55cf443ef1aa.tar.bz2 iced-01aa84e41afa556fd4e82ef11f2f55cf443ef1aa.zip |
Make `window::close` return and introduce `Task::discard`
Diffstat (limited to 'winit')
-rw-r--r-- | winit/src/program.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/winit/src/program.rs b/winit/src/program.rs index 139b2b8f..a51f4fd7 100644 --- a/winit/src/program.rs +++ b/winit/src/program.rs @@ -1209,9 +1209,11 @@ fn run_action<P, C>( *is_window_opening = true; } - window::Action::Close(id) => { + window::Action::Close(id, channel) => { let _ = window_manager.remove(id); let _ = ui_caches.remove(&id); + + let _ = channel.send(id); } window::Action::GetOldest(channel) => { let id = |