Commit 4f6d7cb7 authored by camilo higuita's avatar camilo higuita

dont play all albums tracks only visible tracks

parent 17564286
......@@ -631,25 +631,8 @@ Maui.ApplicationWindow
Player.playAt(0)
}
onPlayAll:
{
var query = Q.GET.albumTracks_.arg(album)
query = query.arg(artist)
query = query.arg(data.artist)
mainPlaylist.list.clear()
mainPlaylist.list.query = query
Player.playAt(0)
}
onAppendAll:
{
var query = Q.GET.albumTracks_.arg(album)
query = query.arg(artist)
mainPlaylist.list.appendQuery(query)
mainPlaylist.listView.positionViewAtEnd()
}
onPlayAll: Player.playAll(albumsView.listModel.getAll())
onAppendAll: Player.appendAll(albumsView.listModel.getAll())
}
}
}
......@@ -694,24 +677,8 @@ Maui.ApplicationWindow
Player.playAt(0)
}
onPlayAll:
{
var query = Q.GET.artistTracks_.arg(artist)
query = query.arg(data.artist)
mainPlaylist.list.clear()
mainPlaylist.list.sortBy = Tracks.NONE
mainPlaylist.list.query = query
Player.playAt(0)
}
onAppendAll:
{
var query = Q.GET.artistTracks_.arg(artist)
mainPlaylist.list.appendQuery(query)
mainPlaylist.listView.positionViewAtEnd()
}
onPlayAll: Player.artistsView(albumsView.listModel.getAll())
onAppendAll: Player.artistsView(albumsView.listModel.getAll())
}
}
}
......
......@@ -22,6 +22,7 @@ BabeGrid
property var tracks: []
property alias table : albumsViewTable
property alias listModel : albumsViewTable.listModel
// property alias tagBar : tagBar
signal rowClicked(var track)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment