mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-10 15:11:58 +01:00
keep playback going through undo and polish the queue drag
This commit is contained in:
@@ -86,6 +86,15 @@ class FakePlayerHandle : PlayerHandle {
|
||||
items += item
|
||||
}
|
||||
|
||||
override fun insertAt(
|
||||
index: Int,
|
||||
item: QueueItem,
|
||||
) {
|
||||
operations += "insertAt($index, ${item.id})"
|
||||
items.add(index, item)
|
||||
if (index <= this.index) this.index++
|
||||
}
|
||||
|
||||
override fun removeFirst() {
|
||||
operations += "removeFirst"
|
||||
items.removeAt(0)
|
||||
|
||||
Reference in New Issue
Block a user