Optimize deletion/cropping of main playlist by using ranges

This commit is contained in:
Andrzej Rybczak
2020-12-20 00:49:21 +01:00
parent b68354a223
commit ab27472b0b
5 changed files with 41 additions and 3 deletions

View File

@@ -528,6 +528,8 @@ inline const char *withErrors(bool success)
return success ? "" : " " "(with errors)";
}
void deleteSelectedSongsFromPlaylist(NC::Menu<MPD::Song> &playlist);
bool addSongToPlaylist(const MPD::Song &s, bool play, int position = -1);
const MPD::Song *currentSong(const BaseScreen *screen);