simplify adding options in Menu class

This commit is contained in:
unK
2008-09-10 11:06:01 +02:00
parent e36bf0a3cc
commit 226702f23a
5 changed files with 19 additions and 68 deletions

View File

@@ -179,12 +179,7 @@ void NcmpcppStatusChanged(MPDConnection *Mpd, MPDStatusChanges changed, void *da
Mpd->GetPlaylistChanges(playlist_old_id, list);
for (SongList::const_iterator it = list.begin(); it != list.end(); it++)
{
if (now_playing != (*it)->GetPosition())
mPlaylist->AddOption(**it);
else
mPlaylist->AddBoldOption(**it);
}
mPlaylist->AddOption(**it, now_playing == (*it)->GetPosition());
if (current_screen == csPlaylist)
{