Remove window::Id::MAIN constant
This commit is contained in:
parent
92e08c8f07
commit
c5f4bebeda
6 changed files with 10 additions and 11 deletions
|
|
@ -38,7 +38,7 @@ impl Events {
|
|||
}
|
||||
Message::EventOccurred(event) => {
|
||||
if let Event::Window(window::Event::CloseRequested) = event {
|
||||
window::close(window::Id::MAIN)
|
||||
window::get_latest().and_then(window::close)
|
||||
} else {
|
||||
Task::none()
|
||||
}
|
||||
|
|
@ -48,7 +48,7 @@ impl Events {
|
|||
|
||||
Task::none()
|
||||
}
|
||||
Message::Exit => window::close(window::Id::MAIN),
|
||||
Message::Exit => window::get_latest().and_then(window::close),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue