Store last loaded playlist

Stores the last loaded playlist uri in the queue struct.
Last loaded playlist is set on load command and cleared with the clear command.
The last loaded playlist is printed in the status command and saved / restored from the partition state file.

Resolves issue #938
This commit is contained in:
jcorporation
2024-08-18 22:55:57 +02:00
parent a3a07280e8
commit bfbff31860
7 changed files with 24 additions and 2 deletions

View File

@@ -85,6 +85,9 @@ struct Queue {
/** play back songs in random order? */
bool random = false;
/** Last loaded playlist */
std::string last_loaded_playlist;
/** random number generator for shuffle and random mode */
LazyRandomEngine rand;