mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
fix check of thumbnail id
This commit is contained in:
parent
ff3e6a8a1a
commit
96e30dd989
1 changed files with 3 additions and 2 deletions
|
|
@ -813,8 +813,9 @@ class ThumbnailWidget(QtWidgets.QLabel):
|
|||
{"_id": doc_id},
|
||||
{"data.thumbnail_id"}
|
||||
)
|
||||
|
||||
thumbnail_id = doc.get("data", {}).get("thumbnail_id")
|
||||
thumbnail_id = None
|
||||
if doc:
|
||||
thumbnail_id = doc.get("data", {}).get("thumbnail_id")
|
||||
if thumbnail_id == self.current_thumb_id:
|
||||
if self.current_thumbnail is None:
|
||||
self.set_pixmap()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue