Fix #477: scroll to currently playing track when loading Now Playing page
This commit is contained in:
@@ -183,9 +183,7 @@ func (p *PlayQueueList) ScrollToNowPlaying() {
|
||||
idx := slices.IndexFunc(p.items, func(item *util.TrackListModel) bool {
|
||||
return item.Item.Metadata().ID == p.nowPlayingID
|
||||
})
|
||||
if idx > 0 {
|
||||
p.list.ScrollTo(idx)
|
||||
}
|
||||
p.list.ScrollTo(idx)
|
||||
}
|
||||
|
||||
func (p *PlayQueueList) Refresh() {
|
||||
|
||||
Reference in New Issue
Block a user