mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
fix(wry): ControlFlow must be set to Wait for performance reasons (#1688)
This commit is contained in:
committed by
GitHub
parent
b86fe9a6de
commit
836ee60dc8
@@ -508,7 +508,7 @@ impl Runtime for Wry {
|
||||
fn run(self) {
|
||||
let mut webviews = self.webviews;
|
||||
self.event_loop.run(move |event, event_loop, control_flow| {
|
||||
*control_flow = ControlFlow::Poll;
|
||||
*control_flow = ControlFlow::Wait;
|
||||
|
||||
for (_, w) in webviews.iter() {
|
||||
if let Err(e) = w.evaluate_script() {
|
||||
|
||||
Reference in New Issue
Block a user