menu: implement custom iterator

This commit is contained in:
Andrzej Rybczak
2012-08-30 20:17:25 +02:00
parent 7297b8a9ad
commit 7e53654492
12 changed files with 207 additions and 151 deletions

View File

@@ -117,7 +117,7 @@ void Outputs::FetchList()
return;
w->Clear();
Mpd.GetOutputs([this](MPD::Output &&o) {
w->AddOption(o, o.isEnabled());
w->AddItem(o, o.isEnabled());
});
if (myScreen == this)
w->Refresh();