Skip to content

Commit 64dc88a

Browse files
committed
fix(ui): display 0 frame webp files in preview panel
1 parent 4771736 commit 64dc88a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tagstudio/qt/widgets/preview/preview_thumb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def _update_animation(self, filepath: Path, ext: str) -> dict:
255255
self.preview_gif.setMovie(movie)
256256

257257
# If the animation only has 1 frame, display it like a normal image.
258-
if movie.frameCount() == 1:
258+
if movie.frameCount() <= 1:
259259
self._display_fallback_image(filepath, ext)
260260
return stats
261261

0 commit comments

Comments
 (0)