Skip to content

Commit

Permalink
remove weird event loop controlflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Kl4rry committed Dec 14, 2024
1 parent 972c471 commit e5f733c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/ferrite-gui/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,7 @@ impl GuiApp {
event_loop.set_control_flow(winit::event_loop::ControlFlow::Wait);
event_loop
.run(move |event, event_loop| match event {
Event::NewEvents(_) => {
self.control_flow = EventLoopControlFlow::Wait;
Event::NewEvents(cause) => {
self.tui_app.start_of_events();
}
Event::UserEvent(event) => {
Expand Down

0 comments on commit e5f733c

Please sign in to comment.