fix: ping window after virtualdom is ready
This commit is contained in:
1 parent
93b4f745af
commit
28716248c5
4 files changed
+32
-1
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user