Return window::Id in window::open
This commit is contained in:
parent
8f33575719
commit
fd593f8fb0
3 changed files with 17 additions and 10 deletions
|
|
@ -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
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue