Exemplo n.º 1
0
    def action(self, view_manager, action_id):
        #Run parent implementation's actions
        BaseListContainerView.action(self, view_manager, action_id)

        playlist_manager = view_manager.get_var('playlist_manager')

        #Do nothing if playing, as it may result counterproductive
        if action_id == 79 and not playlist_manager.is_playing():
            self._start_album_playback(view_manager)
Exemplo n.º 2
0
    def action(self, view_manager, action_id):
        #Run parent implementation's actions
        BaseListContainerView.action(self, view_manager, action_id)

        playlist_manager = view_manager.get_var('playlist_manager')

        #Do nothing if playing, as it may result counterproductive
        if action_id == 79 and not playlist_manager.is_playing():
            self._start_album_playback(view_manager)
Exemplo n.º 3
0
Arquivo: list.py Projeto: GemZ/spotimc
 def action(self, view_manager, action_id):
     #Silently ignore events when not intialized
     if not self.__initialized:
         return
     
     #Run parent implementation's actions
     BaseListContainerView.action(self, view_manager, action_id)
     
     playlist_manager = view_manager.get_var('playlist_manager')
     
     #Do nothing if playing, as it may result counterproductive
     if action_id == 79 and not playlist_manager.is_playing():
         self._start_playlist_playback(view_manager)
Exemplo n.º 4
0
    def action(self, view_manager, action_id):
        #Silently ignore events when not intialized
        if not self.__initialized:
            return

        #Run parent implementation's actions
        BaseListContainerView.action(self, view_manager, action_id)

        playlist_manager = view_manager.get_var('playlist_manager')

        #Do nothing if playing, as it may result counterproductive
        if action_id == 79 and not playlist_manager.is_playing():
            self._start_playlist_playback(view_manager)
Exemplo n.º 5
0
 def action(self, view_manager, action_id):
     #Run parent implementation's actions
     BaseListContainerView.action(self, view_manager, action_id)
     
     if action_id == 79:
         self._start_album_playback(view_manager)