mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-04 09:58:27 +00:00
Exit when window is closed
This commit is contained in:
parent
2b5403530a
commit
aa61ee52fe
@ -41,7 +41,7 @@ impl ApplicationHandler for App {
|
||||
|
||||
fn window_event(
|
||||
&mut self,
|
||||
_: &ActiveEventLoop,
|
||||
event_loop: &ActiveEventLoop,
|
||||
_: WindowId,
|
||||
event: WindowEvent,
|
||||
) {
|
||||
@ -50,6 +50,9 @@ impl ApplicationHandler for App {
|
||||
};
|
||||
|
||||
match event {
|
||||
WindowEvent::CloseRequested => {
|
||||
event_loop.exit();
|
||||
}
|
||||
WindowEvent::RedrawRequested => {
|
||||
renderer.render();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user