Prevent playing prev_track if there are no tracks.

This commit is contained in:
fabian committed 2022-08-21 15:27:00 +02:00
1 parent 45dfe0cfe0
commit 6ddf1efd62
1 file changed
+1 -1
+1 -1
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() {