From 719520c571b5c613ea5fdffd81650e58f6d2b683 Mon Sep 17 00:00:00 2001 From: jypelle Date: Sat, 11 Dec 2021 16:32:58 +0100 Subject: [PATCH] Fix current song selection regression --- internal/cliwa/homeCurrentComponent_wasm.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/cliwa/homeCurrentComponent_wasm.go b/internal/cliwa/homeCurrentComponent_wasm.go index dc3c2d4..8ab4d56 100644 --- a/internal/cliwa/homeCurrentComponent_wasm.go +++ b/internal/cliwa/homeCurrentComponent_wasm.go @@ -189,6 +189,7 @@ func (c *HomeCurrentComponent) RefreshView() { for songIdx, songId := range c.songIds { song = c.app.localDb.Songs[songId] songItemList[songIdx].SongId = string(song.Id) + songItemList[songIdx].SongIdx = songIdx songItemList[songIdx].SongName = song.Name songItemList[songIdx].IsPlaying = songIdx == c.currentSongIdx