mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-10 01:28:41 -06:00
upgrade more stuff
This commit is contained in:
parent
3388dd6491
commit
2656f5af21
|
@ -215,17 +215,16 @@ pub fn kubi_main() {
|
||||||
|
|
||||||
//Run the event loop
|
//Run the event loop
|
||||||
let mut last_update = Instant::now();
|
let mut last_update = Instant::now();
|
||||||
event_loop.run(move |event, _| {
|
event_loop.run(move |event, target| {
|
||||||
//TODO MIGRATION
|
target.set_control_flow(ControlFlow::Poll);
|
||||||
//*control_flow = ControlFlow::Poll;
|
|
||||||
process_glutin_events(&mut world, &event);
|
process_glutin_events(&mut world, &event);
|
||||||
#[allow(clippy::collapsible_match, clippy::single_match)]
|
#[allow(clippy::collapsible_match, clippy::single_match)]
|
||||||
match event {
|
match event {
|
||||||
Event::WindowEvent { event, .. } => match event {
|
Event::WindowEvent { event, .. } => match event {
|
||||||
WindowEvent::CloseRequested => {
|
WindowEvent::CloseRequested => {
|
||||||
log::info!("exit requested");
|
log::info!("exit requested");
|
||||||
//TODO MIGRATION
|
target.exit();
|
||||||
// *control_flow = ControlFlow::Exit;
|
|
||||||
},
|
},
|
||||||
_ => (),
|
_ => (),
|
||||||
},
|
},
|
||||||
|
@ -266,5 +265,5 @@ pub fn kubi_main() {
|
||||||
},
|
},
|
||||||
_ => (),
|
_ => (),
|
||||||
};
|
};
|
||||||
});
|
}).unwrap();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue