bug fix
This commit is contained in:
@@ -191,11 +191,12 @@ func (p *PlaybackManager) GetPlayQueue() []*subsonic.Child {
|
|||||||
// Any time the user changes the favorite status of a track elsewhere in the app,
|
// Any time the user changes the favorite status of a track elsewhere in the app,
|
||||||
// this should be called to ensure the in-memory track model is updated.
|
// this should be called to ensure the in-memory track model is updated.
|
||||||
func (p *PlaybackManager) OnTrackFavoriteStatusChanged(id string, fav bool) {
|
func (p *PlaybackManager) OnTrackFavoriteStatusChanged(id string, fav bool) {
|
||||||
tr := sharedutil.FindTrackByID(id, p.playQueue)
|
if tr := sharedutil.FindTrackByID(id, p.playQueue); tr != nil {
|
||||||
if fav {
|
if fav {
|
||||||
tr.Starred = time.Now()
|
tr.Starred = time.Now()
|
||||||
} else {
|
} else {
|
||||||
tr.Starred = time.Time{}
|
tr.Starred = time.Time{}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user