This commit is contained in:
Mikayla Maki 2023-07-13 14:21:30 -07:00
parent 5797282b98
commit 331fd896b5
No known key found for this signature in database
3 changed files with 14 additions and 7 deletions

View file

@ -2898,7 +2898,8 @@ impl Workspace {
fn schedule_serialize(&mut self, cx: &mut ViewContext<Self>) {
self._schedule_serialize = Some(cx.spawn(|this, cx| async move {
cx.background().timer(Duration::from_millis(100)).await;
this.read_with(&cx, |this, cx| this.serialize_workspace(cx)).ok();
this.read_with(&cx, |this, cx| this.serialize_workspace(cx))
.ok();
}));
}