Set cached_path on bookmark thumbnails for drag and copy

This commit is contained in:
pax 2026-04-06 15:20:50 -05:00
parent 0e6e7090ff
commit 924e065e65

View File

@ -144,6 +144,9 @@ class BookmarksView(QWidget):
for ext in MEDIA_EXTENSIONS for ext in MEDIA_EXTENSIONS
) )
thumb.set_saved_locally(saved) thumb.set_saved_locally(saved)
# Set cached path for drag-and-drop and copy
if fav.cached_path and Path(fav.cached_path).exists():
thumb._cached_path = fav.cached_path
if fav.preview_url: if fav.preview_url:
self._load_thumb_async(i, fav.preview_url) self._load_thumb_async(i, fav.preview_url)
elif fav.cached_path and Path(fav.cached_path).exists(): elif fav.cached_path and Path(fav.cached_path).exists():