Keep window::open impure (for now)
This commit is contained in:
parent
d7aab6c4ec
commit
bf3ac04498
4 changed files with 21 additions and 14 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue