Add example compilation to CI (#24182)

Stop https://github.com/zed-industries/zed/pull/24165 from happening

Release Notes:

- N/A
This commit is contained in:
Mikayla Maki 2025-02-04 01:48:54 -08:00 committed by GitHub
parent 71f2cbe798
commit d400bdea76
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 3 deletions

View file

@ -353,11 +353,15 @@ impl Element for Img {
}
}
} else {
let parent_view_id = window.parent_view_id().unwrap();
let parent_view_id = window.parent_view_id();
let task = window.spawn(cx, |mut cx| async move {
cx.background_executor().timer(LOADING_DELAY).await;
cx.update(move |_, cx| {
cx.notify(parent_view_id);
cx.update(move |window, cx| {
if let Some(parent_view_id) = parent_view_id {
cx.notify(parent_view_id);
} else {
window.refresh();
}
})
.ok();
});