mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-01 11:13:40 +03:00
fix: use Wait instead of Poll
This commit is contained in:
parent
7086cd54d8
commit
2e1f207165
@ -1815,7 +1815,7 @@ impl Runtime for Wry {
|
||||
self
|
||||
.event_loop
|
||||
.run_return(|event, event_loop, control_flow| {
|
||||
*control_flow = ControlFlow::Poll;
|
||||
*control_flow = ControlFlow::Wait;
|
||||
if let Event::MainEventsCleared = &event {
|
||||
*control_flow = ControlFlow::Exit;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user