Commit 62a72a5e authored by Romain Bignon's avatar Romain Bignon

do not consider single mode with "next" command

This is a little ugly, but as nextSongInPlaylist is both called when queued is update (in case playlist ended) and for user "next" command, there isn't any other (simple) solution
parent 1f4f6e6d
...@@ -1013,7 +1013,14 @@ static enum command_return ...@@ -1013,7 +1013,14 @@ static enum command_return
handle_next(G_GNUC_UNUSED struct client *client, handle_next(G_GNUC_UNUSED struct client *client,
G_GNUC_UNUSED int argc, G_GNUC_UNUSED char *argv[]) G_GNUC_UNUSED int argc, G_GNUC_UNUSED char *argv[])
{ {
/* single mode is not considered when this is user who
* wants to change song. */
int single = g_playlist.queue.single;
g_playlist.queue.single = false;
nextSongInPlaylist(&g_playlist); nextSongInPlaylist(&g_playlist);
g_playlist.queue.single = single;
return COMMAND_RETURN_OK; return COMMAND_RETURN_OK;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment