Ability to download album and playlist

Add in the "meatball menu" of the Album and Playlist pages the option to
download the tracks of the corresponding album or playlist in a zip file.
When download is clicked, a dialog window appears allowing you to choose
the file name and where to save the file.
This commit is contained in:
natilou
2023-06-17 02:18:08 -03:00
parent 8ed75254a6
commit b4ab95f5b4
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))
}