Prevent playing prev_track if there are no tracks.

This commit is contained in:
Fabian Schlenz 2022-08-21 15:27:00 +02:00
parent 45dfe0cfe0
commit 6ddf1efd62
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ bool Playlist::prev_track() {
} else {
set_current_position(current_file - 1, 0);
}
return true;
return files.size()>0;
}
void Playlist::restart() {