another fix for 450bf1b6 (hopefully the last one)
This commit is contained in:
@@ -37,8 +37,8 @@ void Outputs::Init()
|
|||||||
w->HighlightColor(Config.main_highlight_color);
|
w->HighlightColor(Config.main_highlight_color);
|
||||||
w->SetItemDisplayer(Display::Pairs);
|
w->SetItemDisplayer(Display::Pairs);
|
||||||
|
|
||||||
FetchList();
|
|
||||||
isInitialized = 1;
|
isInitialized = 1;
|
||||||
|
FetchList();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Outputs::SwitchTo()
|
void Outputs::SwitchTo()
|
||||||
@@ -109,6 +109,8 @@ void Outputs::MouseButtonPressed(MEVENT me)
|
|||||||
|
|
||||||
void Outputs::FetchList()
|
void Outputs::FetchList()
|
||||||
{
|
{
|
||||||
|
if (!isInitialized)
|
||||||
|
return;
|
||||||
MPD::OutputList ol;
|
MPD::OutputList ol;
|
||||||
Mpd.GetOutputs(ol);
|
Mpd.GetOutputs(ol);
|
||||||
w->Clear();
|
w->Clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user