Fix closing the examples

This commit is contained in:
Gabriel Majeri 2018-08-25 11:06:30 +03:00
parent a10935eaf7
commit 86bdc3cecd

View file

@ -253,7 +253,7 @@ impl ExampleBase {
ControlFlow::Continue
}
}
WindowEvent::Destroyed => winit::ControlFlow::Break,
WindowEvent::CloseRequested => winit::ControlFlow::Break,
_ => ControlFlow::Continue,
},
_ => ControlFlow::Continue,