add OnPlayQueueChange hook

This commit is contained in:
Drew Weymouth
2024-03-03 10:38:12 -08:00
parent 013204727d
commit 9b72ff9d17
4 changed files with 33 additions and 0 deletions
+4
View File
@@ -135,6 +135,10 @@ func (a *FullscreenPage) OnSongChange(song, lastScrobbledIfAny *mediaprovider.Tr
})
}
func (a *FullscreenPage) OnPlayQueueChange() {
a.Reload()
}
func (a *FullscreenPage) Reload() {
a.queue = a.pm.GetPlayQueue()
a.queueList.SetTracks(a.queue)