mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +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},
|
{"_id": doc_id},
|
||||||
{"data.thumbnail_id"}
|
{"data.thumbnail_id"}
|
||||||
)
|
)
|
||||||
|
thumbnail_id = None
|
||||||
thumbnail_id = doc.get("data", {}).get("thumbnail_id")
|
if doc:
|
||||||
|
thumbnail_id = doc.get("data", {}).get("thumbnail_id")
|
||||||
if thumbnail_id == self.current_thumb_id:
|
if thumbnail_id == self.current_thumb_id:
|
||||||
if self.current_thumbnail is None:
|
if self.current_thumbnail is None:
|
||||||
self.set_pixmap()
|
self.set_pixmap()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue