forked from openlp/openlp
revert openlp/core/ui/media/mediacontroller.py to prevent merge conflict
This commit is contained in:
parent
41402ab078
commit
eafd3a20ae
@ -127,7 +127,7 @@ class MediaController(object):
|
||||
invalidMediaPlayers = [mediaPlayer for mediaPlayer in savedPlayers \
|
||||
if not mediaPlayer in self.mediaPlayers or \
|
||||
not self.mediaPlayers[mediaPlayer].check_available()]
|
||||
if invalidMediaPlayers:
|
||||
if len(invalidMediaPlayers) > 0:
|
||||
for invalidPlayer in invalidMediaPlayers:
|
||||
savedPlayers.remove(invalidPlayer)
|
||||
set_media_players(savedPlayers, overriddenPlayer)
|
||||
@ -141,7 +141,7 @@ class MediaController(object):
|
||||
Check if there is a running media Player and do updating stuff (e.g.
|
||||
update the UI)
|
||||
"""
|
||||
if not self.curDisplayMediaPlayer:
|
||||
if len(self.curDisplayMediaPlayer.keys()) == 0:
|
||||
self.timer.stop()
|
||||
else:
|
||||
for display in self.curDisplayMediaPlayer.keys():
|
||||
|
Loading…
Reference in New Issue
Block a user