From 924e065e6531eb2ffd7ac613380fda61e23b513f Mon Sep 17 00:00:00 2001 From: pax Date: Mon, 6 Apr 2026 15:20:50 -0500 Subject: [PATCH] Set cached_path on bookmark thumbnails for drag and copy --- booru_viewer/gui/bookmarks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/booru_viewer/gui/bookmarks.py b/booru_viewer/gui/bookmarks.py index 9032487..e178007 100644 --- a/booru_viewer/gui/bookmarks.py +++ b/booru_viewer/gui/bookmarks.py @@ -144,6 +144,9 @@ class BookmarksView(QWidget): for ext in MEDIA_EXTENSIONS ) 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: self._load_thumb_async(i, fav.preview_url) elif fav.cached_path and Path(fav.cached_path).exists():