Merge pull request #198 from natilou/download-album

Ability to download album and playlist
This commit is contained in:
Drew Weymouth
2023-06-17 10:03:01 -07:00
committed by GitHub
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -200,6 +200,9 @@ func NewAlbumPageHeader(page *AlbumPage) *AlbumPageHeader {
fyne.NewMenuItem("Add to playlist...", func() {
a.page.contr.DoAddTracksToPlaylistWorkflow(
sharedutil.TracksToIDs(a.page.tracks))
}),
fyne.NewMenuItem("Download", func() {
a.page.contr.ShowDownloadDialog(a.page.tracks)
}))
pop = widget.NewPopUpMenu(menu, fyne.CurrentApp().Driver().CanvasForObject(a))
}
+3
View File
@@ -260,6 +260,9 @@ func NewPlaylistPageHeader(page *PlaylistPage) *PlaylistPageHeader {
fyne.NewMenuItem("Add to playlist...", func() {
a.page.contr.DoAddTracksToPlaylistWorkflow(
sharedutil.TracksToIDs(a.page.tracks))
}),
fyne.NewMenuItem("Download", func() {
a.page.contr.ShowDownloadDialog(a.page.tracks)
}))
pop = widget.NewPopUpMenu(menu, fyne.CurrentApp().Driver().CanvasForObject(a))
}