forked from openlp/openlp
fixed fixme: constructor
This commit is contained in:
parent
d9f8025042
commit
8761117d34
@ -184,10 +184,8 @@ class SettingsTab(QtGui.QWidget):
|
|||||||
"""
|
"""
|
||||||
Adds the media controller to the class dynamically
|
Adds the media controller to the class dynamically
|
||||||
"""
|
"""
|
||||||
# if not hasattr(self, '_media_controller'):
|
if not hasattr(self, '_media_controller'):
|
||||||
# self._media_controller = Registry().get('media_controller')
|
self._media_controller = Registry().get('media_controller')
|
||||||
# FIXME: python3
|
|
||||||
self._media_controller = Registry().get('media_controller')
|
|
||||||
return self._media_controller
|
return self._media_controller
|
||||||
|
|
||||||
media_controller = property(_get_media_controller)
|
media_controller = property(_get_media_controller)
|
||||||
|
@ -55,7 +55,7 @@ class PlayerTab(SettingsTab):
|
|||||||
"""
|
"""
|
||||||
Constructor
|
Constructor
|
||||||
"""
|
"""
|
||||||
self.media_players = self.media_controller.media_players
|
self.media_players = Registry().get('media_controller').media_players
|
||||||
self.saved_used_players = None
|
self.saved_used_players = None
|
||||||
self.icon_path = u':/media/multimedia-player.png'
|
self.icon_path = u':/media/multimedia-player.png'
|
||||||
player_translated = translate('OpenLP.PlayerTab', 'Players')
|
player_translated = translate('OpenLP.PlayerTab', 'Players')
|
||||||
|
Loading…
Reference in New Issue
Block a user