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 len(self.pillowFrames) - 1 == self.pillowFrame:
|
||||||
if self.playOnce or (self.usePillow == 2 and self.pillowLoops+1 == self.webpLoops):
|
if self.playOnce or (self.usePillow == 2 and self.pillowLoops+1 == self.webpLoops):
|
||||||
self.msleep(int(self.pillowFrames[self.pillowFrame][1] * self.pillowSpeed))
|
QtCore.QTimer.singleShot(
|
||||||
self.stop()
|
int(self.pillowFrames[self.pillowFrame][1] * self.pillowSpeed),
|
||||||
self.done.emit()
|
self.finish
|
||||||
|
)
|
||||||
elif len(self.pillowFrames) > 1: # loop
|
elif len(self.pillowFrames) > 1: # loop
|
||||||
self.pillowLoops += 1
|
self.pillowLoops += 1
|
||||||
self.pillowFrame = 0
|
self.pillowFrame = 0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user