add track info menu item to PlayQueueList and NowPlayingCard

This commit is contained in:
Drew Weymouth
2024-07-26 08:26:02 -07:00
parent 39d62de84a
commit 950d34c57d
4 changed files with 30 additions and 3 deletions
+1
View File
@@ -150,6 +150,7 @@ func (c *Controller) ConnectPlayQueuelistActions(list *widgets.PlayQueueList) {
c.App.PlaybackManager.UpdatePlayQueue(newTracks)
}
list.OnDownload = c.ShowDownloadDialog
list.OnShowTrackInfo = c.ShowTrackInfoDialog
list.OnShare = func(tracks []*mediaprovider.Track) {
if len(tracks) > 0 {
c.ShowShareDialog(tracks[0].ID)