summaryrefslogtreecommitdiffstats
path: root/winit
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-08-12 05:50:22 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-08-12 05:50:22 +0200
commit8b45d620d048c33febbead4480d9ef62f196c9e1 (patch)
tree37c809127d05b157a5fdebed11a8a0b928daefff /winit
parent22fc5ce0ea83b43cdccea26afd5e545880dfdaf4 (diff)
downloadiced-8b45d620d048c33febbead4480d9ef62f196c9e1.tar.gz
iced-8b45d620d048c33febbead4480d9ef62f196c9e1.tar.bz2
iced-8b45d620d048c33febbead4480d9ef62f196c9e1.zip
Revert `window::close` producing a `window::Id`
Instead, subscribing to `window::close_events` is preferable; since most use cases will want to react to the user closing a window as well.
Diffstat (limited to 'winit')
-rw-r--r--winit/src/program.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/winit/src/program.rs b/winit/src/program.rs
index 66f359f4..efe8a978 100644
--- a/winit/src/program.rs
+++ b/winit/src/program.rs
@@ -1211,10 +1211,9 @@ fn run_action<P, C>(
*is_window_opening = true;
}
- window::Action::Close(id, channel) => {
+ window::Action::Close(id) => {
let _ = window_manager.remove(id);
let _ = ui_caches.remove(&id);
- let _ = channel.send(id);
events.push((
id,