Revert "proxy song list: remove highlight"

Highlight is too good not to have.
This reverts commit 9cbcf61fac.
This commit is contained in:
Andrzej Rybczak
2015-01-17 11:57:21 +01:00
parent f09d403e27
commit 51136701bb
2 changed files with 7 additions and 4 deletions

View File

@@ -379,11 +379,11 @@ void ScrollUpArtist::run()
std::string artist = s->getArtist();
while (pos > 0)
{
myScreen->scroll(NC::Scroll::Up);
s = pl.getSong(--pos);
if (!s || s->getArtist() != artist)
break;
}
pl.highlight(pos);
}
}
@@ -404,11 +404,11 @@ void ScrollUpAlbum::run()
std::string album = s->getAlbum();
while (pos > 0)
{
myScreen->scroll(NC::Scroll::Up);
s = pl.getSong(--pos);
if (!s || s->getAlbum() != album)
break;
}
pl.highlight(pos);
}
}
@@ -429,11 +429,11 @@ void ScrollDownArtist::run()
std::string artist = s->getArtist();
while (pos < pl.size() - 1)
{
myScreen->scroll(NC::Scroll::Down);
s = pl.getSong(++pos);
if (!s || s->getArtist() != artist)
break;
}
pl.highlight(pos);
}
}
@@ -454,11 +454,11 @@ void ScrollDownAlbum::run()
std::string album = s->getAlbum();
while (pos < pl.size() - 1)
{
myScreen->scroll(NC::Scroll::Down);
s = pl.getSong(++pos);
if (!s || s->getAlbum() != album)
break;
}
pl.highlight(pos);
}
}