playlist/Queue: add one-shot to single mode

This commit is contained in:
Patryk Hachuła
2018-02-05 17:13:00 +01:00
committed by Max Kellermann
parent 1fb358249b
commit 1628d801f9
15 changed files with 183 additions and 21 deletions

View File

@@ -42,7 +42,7 @@ Queue::GetNextOrder(unsigned _order) const noexcept
{
assert(_order < length);
if (single && repeat && !consume)
if (single != SingleMode::OFF && repeat && !consume)
return _order;
else if (_order + 1 < length)
return _order + 1;