fix: ping window after virtualdom is ready

This commit is contained in:
Jonathan Kelley committed 2022-02-19 17:34:44 -05:00
1 parent 93b4f745af
commit 28716248c5
4 files changed
+32 -1

No files matched your search

+3
View File
@@ -57,6 +57,9 @@ impl DesktopController {
.unwrap()
.push_front(serde_json::to_string(&edits.edits).unwrap());
// Make sure the window is ready for any new updates
proxy.send_event(UserWindowEvent::Update).unwrap();
loop {
dom.wait_for_work().await;
let mut muts = dom.work_with_deadline(|| false);