fix aomovie frame change timer
This commit is contained in:
parent
508da57573
commit
679a8688ce
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user