mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 13:24:54 +01:00
set default thumbnail on initialization of ThumbnailWidget
This commit is contained in:
parent
28bf0a2399
commit
2b2f27b74e
2 changed files with 1 additions and 3 deletions
|
|
@ -188,9 +188,6 @@ class LibraryLoaderWindow(QtWidgets.QDialog):
|
|||
self._message_label = message_label
|
||||
self._message_timer = message_timer
|
||||
|
||||
# Set default thumbnail on start
|
||||
thumbnail_widget.set_thumbnail(None)
|
||||
|
||||
def showEvent(self, event):
|
||||
super(LibraryLoaderWindow, self).showEvent(event)
|
||||
if self._first_show:
|
||||
|
|
|
|||
|
|
@ -745,6 +745,7 @@ class ThumbnailWidget(QtWidgets.QLabel):
|
|||
"default_thumbnail.png"
|
||||
)
|
||||
self.default_pix = QtGui.QPixmap(default_pix_path)
|
||||
self.set_pixmap()
|
||||
|
||||
def height(self):
|
||||
width = self.width()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue