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
This commit is contained in:
parent
1f4f6e6df2
commit
62a72a5e4d
@ -1013,7 +1013,14 @@ static enum command_return
|
||||
handle_next(G_GNUC_UNUSED struct client *client,
|
||||
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);
|
||||
|
||||
g_playlist.queue.single = single;
|
||||
return COMMAND_RETURN_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user