Keep window::open impure (for now)

This commit is contained in:
Héctor Ramón Jiménez 2025-08-27 10:59:45 +02:00
parent d7aab6c4ec
commit bf3ac04498
No known key found for this signature in database
GPG key ID: 4C07CEC81AFA161F
4 changed files with 21 additions and 14 deletions

View file

@ -145,8 +145,8 @@ impl<P: Program + 'static> Emulator<P> {
dbg!(action);
}
Action::Window(action) => match action {
window::Action::Open(_settings, sender) => {
self.window = core::window::Id::unique();
window::Action::Open(id, _settings, sender) => {
self.window = id;
let _ = sender.send(self.window);
}