mirror of
https://github.com/navidrome/navidrome.git
synced 2026-04-28 11:29:38 +00:00
Add ToggleStar to SongContextMenu (WIP)
This commit is contained in:
parent
e21262675e
commit
8a68cecdb9
14 changed files with 132 additions and 42 deletions
|
|
@ -96,3 +96,12 @@ func (r sqlRepository) cleanAnnotations() error {
|
|||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r sqlRepository) updateAnnotations(id string, m interface{}) error {
|
||||
ans := m.(model.AnnotatedModel).GetAnnotations()
|
||||
err := r.SetStar(ans.Starred, id)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return r.SetRating(ans.Rating, id)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue