remove SupportsSongRadio infra since all mediaproviders support it now

This commit is contained in:
Drew Weymouth
2024-03-31 09:28:50 -07:00
parent 469369081f
commit 914636e91f
8 changed files with 20 additions and 43 deletions
-4
View File
@@ -76,9 +76,6 @@ type TracklistOptions struct {
// Disables the sharing option.
DisableSharing bool
// Disables the song radio option.
DisableSongRadio bool
}
type Tracklist struct {
@@ -588,7 +585,6 @@ func (t *Tracklist) onShowContextMenu(e *fyne.PointEvent, trackIdx int) {
}
t.ratingSubmenu.Disabled = t.Options.DisableRating
t.shareMenuItem.Disabled = t.Options.DisableSharing || len(t.selectedTracks()) != 1
t.songRadioMenuItem.Disabled = t.Options.DisableSongRadio || len(t.selectedTracks()) != 1
widget.ShowPopUpMenuAtPosition(t.ctxMenu, fyne.CurrentApp().Driver().CanvasForObject(t), e.AbsolutePosition)
}