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

@@ -22,6 +22,7 @@
#include "Compiler.h"
#include "IdTable.hxx"
#include "SingleMode.hxx"
#include "util/LazyRandomEngine.hxx"
#include <algorithm>
@@ -92,7 +93,7 @@ struct Queue {
bool repeat = false;
/** play only current song. */
bool single = false;
SingleMode single = SingleMode::OFF;
/** remove each played files. */
bool consume = false;