playlist: make single mode 'sticky'
This commit is contained in:
parent
28bcb8bdf5
commit
a59ab3e2ee
1
NEWS
1
NEWS
|
@ -103,6 +103,7 @@ ver 0.16 (20??/??/??)
|
||||||
* added test suite ("make check")
|
* added test suite ("make check")
|
||||||
* require GLib 2.12
|
* require GLib 2.12
|
||||||
* added libwrap support
|
* added libwrap support
|
||||||
|
* make single mode 'sticky'
|
||||||
|
|
||||||
|
|
||||||
ver 0.15.12 (2010/07/20)
|
ver 0.15.12 (2010/07/20)
|
||||||
|
|
|
@ -108,11 +108,8 @@ playlist_song_started(struct playlist *playlist)
|
||||||
playlist->current = playlist->queued;
|
playlist->current = playlist->queued;
|
||||||
playlist->queued = -1;
|
playlist->queued = -1;
|
||||||
|
|
||||||
/* Set pause and remove the single mode. */
|
/* Pause if we are in single mode. */
|
||||||
if(playlist->queue.single && !playlist->queue.repeat) {
|
if(playlist->queue.single && !playlist->queue.repeat) {
|
||||||
playlist->queue.single = false;
|
|
||||||
idle_add(IDLE_OPTIONS);
|
|
||||||
|
|
||||||
pc_set_pause(true);
|
pc_set_pause(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue