forked from openlp/openlp
Fix blank / unblank bug
This commit is contained in:
parent
cdc810de67
commit
d6513f7c60
@ -709,11 +709,10 @@ class MediaController(object):
|
|||||||
return
|
return
|
||||||
controller = self.mainWindow.liveController
|
controller = self.mainWindow.liveController
|
||||||
display = self._define_display(controller)
|
display = self._define_display(controller)
|
||||||
if self.currentMediaPlayer[controller.controllerType].state \
|
if controller.controllerType in self.currentMediaPlayer and \
|
||||||
!= MediaState.Playing:
|
self.currentMediaPlayer[controller.controllerType].state != MediaState.Playing:
|
||||||
if self.currentMediaPlayer[controller.controllerType].play(display):
|
if self.currentMediaPlayer[controller.controllerType].play(display):
|
||||||
self.currentMediaPlayer[controller.controllerType] \
|
self.currentMediaPlayer[controller.controllerType].set_visible(display, True)
|
||||||
.set_visible(display, True)
|
|
||||||
# Start Timer for ui updates
|
# Start Timer for ui updates
|
||||||
if not self.timer.isActive():
|
if not self.timer.isActive():
|
||||||
self.timer.start()
|
self.timer.start()
|
||||||
|
Loading…
Reference in New Issue
Block a user