audio: Remove duplicates from the recent playqueue
Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
This commit is contained in:
parent
5f582e639b
commit
240ae7e21a
|
@ -182,6 +182,7 @@ void audio :: next()
|
|||
track_loaded = true;
|
||||
|
||||
cur_trackid = id;
|
||||
o_recently_played.del_track(id);
|
||||
o_recently_played.add_front(id);
|
||||
o_recently_played.set_cur(0);
|
||||
}
|
||||
|
@ -213,6 +214,7 @@ void audio :: load_trackid(unsigned int track_id)
|
|||
track_loaded = true;
|
||||
|
||||
cur_trackid = track_id;
|
||||
o_recently_played.del_track(track_id);
|
||||
o_recently_played.add_front(track_id);
|
||||
o_recently_played.set_cur(0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue