Make window::open pure again

This commit is contained in:
Héctor Ramón Jiménez 2025-07-08 00:31:04 +02:00
parent 98d8f466bb
commit 1deb87694d
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 12 additions and 19 deletions

View file

@ -108,7 +108,7 @@ where
let task = if let Some(window_settings) = window_settings {
let mut task = Some(task);
let (_id, open) = runtime::window::open(window_settings);
let open = runtime::window::open(window_settings);
open.then(move |_| task.take().unwrap_or(Task::none()))
} else {
@ -1121,7 +1121,8 @@ fn run_action<'a, P, C>(
}
},
Action::Window(action) => match action {
window::Action::Open(id, settings, channel) => {
window::Action::Open(settings, channel) => {
let id = core::window::Id::unique();
let monitor = window_manager.last_monitor();
control_sender