mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-14 14:22:39 +00:00
Apply review fixes
- crates/ui-egui/src/preflight_worker.rs
This commit is contained in:
1 parent
ee69d5ac39
commit
2e1d17e1fa
1 file changed
+4
-1
@@ -151,7 +151,10 @@ fn issues_at(app: &mut DesignApp, ctx: &egui::Context, now: f64) -> Option<Arc<V
|
||||
if let Some(wait) = state.worker.retry_wait() {
|
||||
if wait.is_zero() {
|
||||
found.asked_at = now;
|
||||
state.worker.ask(ctx, of, doc, &cache, true);
|
||||
if !state.worker.ask(ctx, of, doc, &cache, true) {
|
||||
// Come back when a new worker may be tried again.
|
||||
ctx.request_repaint_after(RETRY_AFTER);
|
||||
}
|
||||
} else {
|
||||
// Come back when a new worker may be tried.
|
||||
ctx.request_repaint_after(wait);
|
||||
|
||||
Reference in new issue
Block a user