mirror of
https://github.com/storytold/deckcraft.git
synced 2026-10-27 20:16:50 -06:00
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:
co-authored by
Claude Opus 5.5
parent
23ac41f191
commit
0a470c3b1f
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user