fix aomovie frame change timer

This commit is contained in:
cidoku 2026-04-03 13:34:22 -03:00
parent 508da57573
commit 679a8688ce

View File

@ -628,9 +628,10 @@ class AOMovie(QtGui.QLabel):
if len(self.pillowFrames) - 1 == self.pillowFrame:
if self.playOnce or (self.usePillow == 2 and self.pillowLoops+1 == self.webpLoops):
self.msleep(int(self.pillowFrames[self.pillowFrame][1] * self.pillowSpeed))
self.stop()
self.done.emit()
QtCore.QTimer.singleShot(
int(self.pillowFrames[self.pillowFrame][1] * self.pillowSpeed),
self.finish
)
elif len(self.pillowFrames) > 1: # loop
self.pillowLoops += 1
self.pillowFrame = 0