implement HasSongs interface

This commit is contained in:
Andrzej Rybczak
2012-09-02 13:47:57 +02:00
parent ad8fef343f
commit 6f59a175ec
37 changed files with 840 additions and 705 deletions

View File

@@ -116,9 +116,9 @@ void Outputs::FetchList()
if (!isInitialized)
return;
w->Clear();
Mpd.GetOutputs([this](MPD::Output &&o) {
w->AddItem(o, o.isEnabled());
});
auto outputs = Mpd.GetOutputs();
for (auto o = outputs.begin(); o != outputs.end(); ++o)
w->AddItem(*o, o->isEnabled());
if (myScreen == this)
w->Refresh();
}