Merge pull request #115 from GabrielMajeri/fix-example-close

Fix closing the examples through the close button
This commit is contained in:
Maik Klein 2018-08-25 10:21:17 +02:00 committed by GitHub
commit f161e2d967
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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