mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-30 21:30:03 -04:00
Make ControlFlow::Wait the default (#3106)
This commit is contained in:
committed by
Kirill Chibisov
parent
c5cef46060
commit
220a2d32d5
@@ -10,7 +10,7 @@ mod example {
|
||||
use std::rc::Rc;
|
||||
|
||||
use winit::event::{ElementState, Event, KeyEvent, WindowEvent};
|
||||
use winit::event_loop::{ControlFlow, EventLoop};
|
||||
use winit::event_loop::EventLoop;
|
||||
use winit::keyboard::Key;
|
||||
use winit::platform::startup_notify::{
|
||||
EventLoopExtStartupNotify, WindowBuilderExtStartupNotify, WindowExtStartupNotify,
|
||||
@@ -102,8 +102,6 @@ mod example {
|
||||
counter += 1;
|
||||
create_first_window = false;
|
||||
}
|
||||
|
||||
elwt.set_control_flow(ControlFlow::Wait);
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user