Fix up merged PRs: prefetch GIF check passes the document uid

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas
2026-10-14 13:45:41 -04:00
co-authored by Claude Opus 5.5
parent 23ac41f191
commit 0a470c3b1f
+1 -1
View File
@@ -584,7 +584,7 @@ pub fn ui(app: &mut SlideApp, ui: &mut Ui) {
// frame depends on when it is entered).
if !animating && show.trans.is_none() && !show.preview_only {
let next = deckcraft_anim::show_order(&doc).into_iter().find(|i| *i > idx);
let wanted = next.filter(|n| app.media.gifs(&doc, *n, now, &app.session.gif_paused).is_empty());
let wanted = next.filter(|n| app.media.gifs(doc_uid, &doc, *n, now, &app.session.gif_paused).is_empty());
if let Some(n) = wanted
&& show.prefetch.as_ref().is_none_or(|p| p.key.slide != n || p.key.size != size || p.key.doc != std::sync::Arc::as_ptr(&doc) as usize)
{