Fix track not showing as active after session restore

The current track is now marked as active even when paused, matching standard player behavior. This fixes the issue where after app restoration, the loaded track doesn't appear active until user interaction.

Changed: Remove isPlaybackActive condition from track active state logic in AlbumDetailView and PlaylistDetailView.
This commit is contained in:
vicrodh committed 2026-01-19 04:12:47 -06:00
1 parent 02469aa7b2
commit 5d74dad63f
2 files changed
+2 -2

No files matched your search

@@ -233,7 +233,7 @@
artist={track.artist}
duration={track.duration}
quality={track.quality}
isPlaying={isPlaybackActive && activeTrackId === track.id}
isPlaying={activeTrackId === track.id}
downloadStatus={downloadInfo.status}
downloadProgress={downloadInfo.progress}
onPlay={() => {
@@ -924,7 +924,7 @@
{#each displayTracks as track, idx (`${track.id}-${downloadStateVersion}`)}
{@const downloadInfo = track.isLocal ? { status: 'none' as const, progress: 0 } : (getTrackDownloadStatus?.(track.id) ?? { status: 'none' as const, progress: 0 })}
{@const isActiveTrack = isPlaybackActive && (
{@const isActiveTrack = (
track.isLocal
? (track.localTrackId !== undefined && activeTrackId === track.localTrackId)
: activeTrackId === track.id