implement ProxySongList for handling general operations on lists
This commit is contained in:
@@ -79,7 +79,9 @@ void setProperties(NC::Menu<T> &menu, const MPD::Song &s, HasSongs &screen, bool
|
||||
separate_albums = false;
|
||||
if (Config.playlist_separate_albums)
|
||||
{
|
||||
auto next = screen.getSong(menu.DrawnPosition()+1);
|
||||
auto pl = screen.getProxySongList();
|
||||
assert(pl);
|
||||
auto next = pl->getSong(menu.DrawnPosition()+1);
|
||||
if (next && next->getAlbum() != s.getAlbum())
|
||||
separate_albums = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user