Use Proxy directly instead of Runtime::run
This commit is contained in:
parent
f0be63517f
commit
2071ef9cd5
1 changed files with 1 additions and 6 deletions
|
|
@ -882,12 +882,7 @@ async fn run_instance<P>(
|
||||||
// Defer all window actions to avoid compositor
|
// Defer all window actions to avoid compositor
|
||||||
// race conditions while redrawing
|
// race conditions while redrawing
|
||||||
if let Action::Window(_) = action {
|
if let Action::Window(_) = action {
|
||||||
runtime.run(
|
proxy.send_action(action);
|
||||||
futures::futures::stream::once(
|
|
||||||
async move { action },
|
|
||||||
)
|
|
||||||
.boxed(),
|
|
||||||
);
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue