Made the first track have the play mark on start.

This commit is contained in:
The Wobbler 2025-01-26 12:58:37 +01:00
parent 35f5bd9efb
commit 29f86e2196
2 changed files with 3 additions and 1 deletions

View file

@ -17,7 +17,6 @@ class Player:
self.track_progress = TrackProgress(self.app) self.track_progress = TrackProgress(self.app)
playlists = []
self.current_playlist = Playlist(self.app, "None") self.current_playlist = Playlist(self.app, "None")
self.playing = False self.playing = False

View file

@ -106,6 +106,9 @@ class PlaylistView(QTreeWidget):
i += 1 i += 1
if not self.topLevelItemCount() == 0:
self.topLevelItem(0).setIcon(0, self.play_icon)
def on_track_activation(self, item, column): def on_track_activation(self, item, column):
if not self.app.player.current_playlist == self.playlist: if not self.app.player.current_playlist == self.playlist:
self.app.player.current_playlist = self.playlist self.app.player.current_playlist = self.playlist