Made the first track have the play mark on start.
This commit is contained in:
parent
35f5bd9efb
commit
29f86e2196
2 changed files with 3 additions and 1 deletions
|
@ -17,7 +17,6 @@ class Player:
|
|||
|
||||
self.track_progress = TrackProgress(self.app)
|
||||
|
||||
playlists = []
|
||||
self.current_playlist = Playlist(self.app, "None")
|
||||
|
||||
self.playing = False
|
||||
|
|
|
@ -106,6 +106,9 @@ class PlaylistView(QTreeWidget):
|
|||
|
||||
i += 1
|
||||
|
||||
if not self.topLevelItemCount() == 0:
|
||||
self.topLevelItem(0).setIcon(0, self.play_icon)
|
||||
|
||||
def on_track_activation(self, item, column):
|
||||
if not self.app.player.current_playlist == self.playlist:
|
||||
self.app.player.current_playlist = self.playlist
|
||||
|
|
Loading…
Add table
Reference in a new issue