Keep window::open impure (for now)
This commit is contained in:
parent
d7aab6c4ec
commit
bf3ac04498
4 changed files with 21 additions and 14 deletions
|
|
@ -109,7 +109,7 @@ where
|
|||
let task = if let Some(window_settings) = window_settings {
|
||||
let mut task = Some(task);
|
||||
|
||||
let open = runtime::window::open(window_settings);
|
||||
let (_id, open) = runtime::window::open(window_settings);
|
||||
|
||||
open.then(move |_| task.take().unwrap_or(Task::none()))
|
||||
} else {
|
||||
|
|
@ -1122,8 +1122,7 @@ fn run_action<'a, P, C>(
|
|||
}
|
||||
},
|
||||
Action::Window(action) => match action {
|
||||
window::Action::Open(settings, channel) => {
|
||||
let id = core::window::Id::unique();
|
||||
window::Action::Open(id, settings, channel) => {
|
||||
let monitor = window_manager.last_monitor();
|
||||
|
||||
control_sender
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue