diff options
| author | Adam Malczewski <[email protected]> | 2026-04-10 01:00:45 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-04-10 01:00:45 +0900 |
| commit | 5d610bcad55c5d908a4ae046390124b5f5174762 (patch) | |
| tree | 68cf7025274e31a092a438479aca9e5176507d53 /src/lib/components/ImagePreview.svelte | |
| parent | 328b962572e4decb5280541c6d01495af440799d (diff) | |
| download | flashair-speedsync-5d610bcad55c5d908a4ae046390124b5f5174762.tar.gz flashair-speedsync-5d610bcad55c5d908a4ae046390124b5f5174762.zip | |
better debug, change button sorting
Diffstat (limited to 'src/lib/components/ImagePreview.svelte')
| -rw-r--r-- | src/lib/components/ImagePreview.svelte | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/components/ImagePreview.svelte b/src/lib/components/ImagePreview.svelte index 914f9a1..335e231 100644 --- a/src/lib/components/ImagePreview.svelte +++ b/src/lib/components/ImagePreview.svelte @@ -320,7 +320,7 @@ // Check staleness after await if (activePath !== entry.path) return; // Store in cache (fire-and-forget) - void imageCache.put('thumbnail', entry.path, blob, meta); + void imageCache.put('thumbnail', entry.path, blob, meta, entry.date.getTime()); const blobUrl = URL.createObjectURL(blob); rawThumbnailUrl = blobUrl; thumbnailBlobUrl = blobUrl; @@ -386,7 +386,7 @@ const blob = await res.blob(); if (abort.signal.aborted || activePath !== entry.path) return; // Store in cache (fire-and-forget) - void imageCache.put('full', entry.path, blob); + void imageCache.put('full', entry.path, blob, undefined, entry.date.getTime()); autoCacheService.markCached(entry.path); const objectUrl = URL.createObjectURL(blob); rawObjectUrl = objectUrl; |
