def set_playing_indicator(self):
     """
         Show play indicator
     """
     if self._artwork is None:
         return
     selected = self.album.id == App().player.current_track.album.id
     if self.__revealer.get_reveal_child():
         TracksView.set_playing_indicator(self)
         self.set_state_flags(Gtk.StateFlags.NORMAL, True)
     elif selected:
         self.set_state_flags(Gtk.StateFlags.VISITED, True)
     else:
         self.set_state_flags(Gtk.StateFlags.NORMAL, True)
Пример #2
0
 def set_playing_indicator(self):
     """
         Update playing indicator
     """
     TracksView.set_playing_indicator(self)