make sure to update lyric position when restoring NowPlaying page

This commit is contained in:
Drew Weymouth
2024-06-03 19:27:09 -07:00
parent e9519abe62
commit dbb1602a9f
+11
View File
@@ -421,6 +421,17 @@ func (a *NowPlayingPage) Reload() {
a.totalTime += float64(tr.Metadata().Duration)
}
a.formatStatusLine()
if a.tabs == nil {
return
}
switch a.tabs.SelectedIndex() {
case 1: /*lyrics*/
a.lastPlayPos = a.pm.CurrentPlayer().GetStatus().TimePos
a.updateLyrics()
case 2: /*related*/
a.updateRelatedList()
}
}
func (s *nowPlayingPageState) Restore() Page {