cycle the playQueue from lastTrack -> firstTrack when clicking Next on lastTrack

This commit is contained in:
Siiiiinth
2026-01-09 09:35:26 +01:00
parent 2c19f9f926
commit 79024784ec
+1 -5
View File
@@ -318,11 +318,7 @@ func (p *playbackEngine) SeekFwdBackN(n int) error {
newIdx := min(lastIdx, max(0, idx+n))
if idx == lastIdx && n > 0 {
if p.loopMode == LoopAll {
newIdx = 0
} else {
return nil // already on last track, nothing to seek next to
}
newIdx = 0
}
return p.PlayTrackAt(newIdx)
}