UI: request repaint on stale thumbnail return to finish grayscale refresh

This commit is contained in:
sbjwin
2026-11-05 12:51:29 +09:00
parent b06d60b8ed
commit ebd306acc1
+2 -1
View File
@@ -394,7 +394,8 @@ impl Textures {
return Some(e.tex.clone());
}
if *budget == 0 {
// Keep showing the stale thumbnail while the new one waits.
// Keep showing the stale thumbnail while the new one waits; request a repaint to finish rendering.
ctx.request_repaint();
return self.thumbs.get(&key.slide).map(|e| e.tex.clone());
}
*budget -= 1;