diff options
author | 2024-07-30 22:26:55 +0200 | |
---|---|---|
committer | 2024-07-30 22:26:55 +0200 | |
commit | fd593f8fb0c8476463f9c04ae2bcc96784b8c530 (patch) | |
tree | 8f9413a9b642aaaf6de091694d429def07966892 /winit | |
parent | 8f335757192701c4d276016ec68da6aa34b6c568 (diff) | |
download | iced-fd593f8fb0c8476463f9c04ae2bcc96784b8c530.tar.gz iced-fd593f8fb0c8476463f9c04ae2bcc96784b8c530.tar.bz2 iced-fd593f8fb0c8476463f9c04ae2bcc96784b8c530.zip |
Return `window::Id` in `window::open`
Diffstat (limited to 'winit')
-rw-r--r-- | winit/src/program.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/winit/src/program.rs b/winit/src/program.rs index 286fff77..7e7864b3 100644 --- a/winit/src/program.rs +++ b/winit/src/program.rs @@ -207,8 +207,9 @@ where let task = if let Some(window_settings) = window_settings { let mut task = Some(task); - runtime::window::open(window_settings) - .then(move |_| task.take().unwrap_or(Task::none())) + let (_id, open) = runtime::window::open(window_settings); + + open.then(move |_| task.take().unwrap_or(Task::none())) } else { task }; |