mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-10 15:11:58 +01:00
d5a9a11cef85a6fe8141f39c18955586c548fd48
Split playback into a shuffled context and a manual up-next list. `up_next_entries` holds the same reference-plus-range rows as the context but is never shuffled; `playback_cursor.upNextAnchor` pins the block between a context track and its successor. `QueueRepository` resolves a combined position by mapping through the context order and splicing the block after the anchor, so the controller's window and next/previous keep working. PlaybackController gains addToQueue/playNext, consumes a queued track when playback advances out of it, resumes the context when the block empties, and clears the block on a new context. The queue view gets an editable "Up next" section and a read-only context section, and the context menu gains Play next / Add to queue for songs, albums and playlists.
Languages
Kotlin
99.1%
Nushell
0.7%
Nix
0.1%