Fade in video thumbnail on load

Hide the thumbnail QLabel before assigning the pixmap and trigger animate_widget_fade_in to smoothly fade the thumbnail into view. Keeps existing exception logging for thumbnail processing.
This commit is contained in:
oop7
2026-02-01 12:27:07 +02:00
parent f9a9dc4879
commit 091c6c68c1
+5
View File
@@ -410,7 +410,12 @@ class VideoInfoMixin:
image.save(img_byte_arr, format="PNG") image.save(img_byte_arr, format="PNG")
pixmap = QPixmap() pixmap = QPixmap()
pixmap.loadFromData(img_byte_arr.getvalue()) pixmap.loadFromData(img_byte_arr.getvalue())
# Fade in the thumbnail
self.thumbnail_label.setVisible(False)
self.thumbnail_label.setPixmap(pixmap) self.thumbnail_label.setPixmap(pixmap)
self.animate_widget_fade_in(self.thumbnail_label)
except Exception as e: except Exception as e:
logger.exception(f"Error processing thumbnail image: {e}") logger.exception(f"Error processing thumbnail image: {e}")