libsaria: Remove songs from the library playlist when they are reaped
It's useful to keep the UI in sync with the backend... Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
parent
4d764eeb00
commit
83e3763083
|
@ -43,6 +43,7 @@ void ValidateTask::run_task()
|
|||
track = &it->get_value();
|
||||
if (!libsaria::exists(track->get_filepath())) {
|
||||
println("Reaping: " + track->get_filepath());
|
||||
lib_playlist.remove_track(&it->get_value());
|
||||
it = path->tracks.erase(it);
|
||||
path->data_state = DIRTY;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue