Merge pull request #198 from natilou/download-album
Ability to download album and playlist
This commit is contained in:
@@ -200,6 +200,9 @@ func NewAlbumPageHeader(page *AlbumPage) *AlbumPageHeader {
|
|||||||
fyne.NewMenuItem("Add to playlist...", func() {
|
fyne.NewMenuItem("Add to playlist...", func() {
|
||||||
a.page.contr.DoAddTracksToPlaylistWorkflow(
|
a.page.contr.DoAddTracksToPlaylistWorkflow(
|
||||||
sharedutil.TracksToIDs(a.page.tracks))
|
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))
|
pop = widget.NewPopUpMenu(menu, fyne.CurrentApp().Driver().CanvasForObject(a))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -260,6 +260,9 @@ func NewPlaylistPageHeader(page *PlaylistPage) *PlaylistPageHeader {
|
|||||||
fyne.NewMenuItem("Add to playlist...", func() {
|
fyne.NewMenuItem("Add to playlist...", func() {
|
||||||
a.page.contr.DoAddTracksToPlaylistWorkflow(
|
a.page.contr.DoAddTracksToPlaylistWorkflow(
|
||||||
sharedutil.TracksToIDs(a.page.tracks))
|
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))
|
pop = widget.NewPopUpMenu(menu, fyne.CurrentApp().Driver().CanvasForObject(a))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user