fix(qt): the album view's Add to queue appends instead of playing later

The album track row folded every enqueue mode that was not "next" into
"later", so "Add to queue" inserted on the manual block's tail — right after
the current track, under the "Next in queue" header — instead of appending at
the end. Three adds during a smoke test left the queue with the same recording
three rows apart, which then fed a duplicate-occurrence hunt in QConnect.

TrackRow emits "next" | "later" | "queue" and enqueue_album_track has an arm
for each: the fold is a leftover from when that path had no block-tail arm. The
mode now travels verbatim. No other surface collapses modes.

cc
This commit is contained in:
vicrodh committed 2026-09-15 20:58:26 -06:00
1 parent 61013314a0
commit 02d9873cd9
1 file changed
+7 -2
+7 -2
View File
@@ -1911,9 +1911,14 @@ Rectangle {
// the entry can.
menuShowGoTo: false
onPlayRequested: QbzPlayer.playAlbumFrom(albumHeader.id, item.id)
// TrackRow emits "next" | "later" | "queue" and
// `enqueue_album_track` has an arm for each. Folding
// everything but "next" into "later" made this row's
// "Add to queue" insert on the manual block's tail —
// right after the current track, under the "Next in
// queue" header — instead of appending at the end.
onEnqueueRequested: function (m) {
QbzPlayer.enqueueAlbumTrack(albumHeader.id, item.id,
m === "next" ? "next" : "later")
QbzPlayer.enqueueAlbumTrack(albumHeader.id, item.id, m)
}
onMixtapeRequested: QbzMyQbzAdd.open(JSON.stringify([{
"itemType": "track", "source": "qobuz",