mirror of https://gitlab.com/openlp/openlp.git
Fix duplicate ifs
This commit is contained in:
parent
59ca1f5469
commit
77f49258f9
|
@ -347,12 +347,11 @@ class MediaController(object):
|
||||||
autoplay = True
|
autoplay = True
|
||||||
if autoplay:
|
if autoplay:
|
||||||
if not self.video_play([controller]):
|
if not self.video_play([controller]):
|
||||||
if not self.video_play([controller]):
|
critical_error_message_box(
|
||||||
critical_error_message_box(
|
translate('MediaPlugin.MediaItem', 'Unsupported File'),
|
||||||
translate('MediaPlugin.MediaItem', 'Unsupported File'),
|
unicode(translate('MediaPlugin.MediaItem',
|
||||||
unicode(translate('MediaPlugin.MediaItem',
|
'Unsupported File')))
|
||||||
'Unsupported File')))
|
return False
|
||||||
return False
|
|
||||||
self.set_controls_visible(controller, True)
|
self.set_controls_visible(controller, True)
|
||||||
log.debug(u'use %s controller' % self.curDisplayMediaPlayer[display])
|
log.debug(u'use %s controller' % self.curDisplayMediaPlayer[display])
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue