command/QueueCommands: reimplement relative "move"/"moveid" offsets
The existing implementation has been utterly broken forever; I cannot explain what it actually does, but it doesn't do what the documentation says.
This commit is contained in:
@@ -147,14 +147,10 @@ struct Partition final : QueueListener, PlayerListener, MixerListener {
|
||||
playlist.Shuffle(pc, range);
|
||||
}
|
||||
|
||||
void MoveRange(RangeArg range, int to) {
|
||||
void MoveRange(RangeArg range, unsigned to) {
|
||||
playlist.MoveRange(pc, range, to);
|
||||
}
|
||||
|
||||
void MoveId(unsigned id, int to) {
|
||||
playlist.MoveId(pc, id, to);
|
||||
}
|
||||
|
||||
void SwapPositions(unsigned song1, unsigned song2) {
|
||||
playlist.SwapPositions(pc, song1, song2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user