[READ-ONLY] Mirror of https://github.com/probablykasper/ferrum. Music library app for Mac, Linux and Windows ferrum.kasper.space
electron linux macos music music-library music-player napi windows
0

Configure Feed

Select the types of activity you want to include in your feed.

Fix queue rearranging reversing tracks

Kasper (Jan 19, 2023, 8:11 AM +0100) 27175c2e af5c16f6

+3 -1
+1
CHANGELOG.md
··· 1 1 # Changelog 2 2 3 3 ## Next 4 + - Fix queue rearranging reversing tracks 4 5 - Fix error when rearranging many tracks in the queue 5 6 6 7 ## 0.16.4 - 2022 Jan 7
+2 -1
src/lib/queue.ts
··· 160 160 } 161 161 return q 162 162 }) 163 - return insertItems(ids, newIndex, top) 163 + // We sorted the indexes descending, so now reverse them 164 + return insertItems(ids.reverse(), newIndex, top) 164 165 } 165 166 166 167 export function insertItems(items: QueueItem[], index: number, top = false) {