throw away Menu::GetPosition() as Menu::Choice() does the same
oh cool, I forgot that such function already exists under different name ~~
This commit is contained in:
@@ -69,14 +69,14 @@ void Outputs::EnterPressed()
|
||||
{
|
||||
if (w->Current().second)
|
||||
{
|
||||
if (Mpd->DisableOutput(w->GetPosition()))
|
||||
if (Mpd->DisableOutput(w->Choice()))
|
||||
ShowMessage("Output \"%s\" disabled", w->Current().first.c_str());
|
||||
w->Current().second = 0;
|
||||
w->BoldOption(w->Choice(), 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Mpd->EnableOutput(w->GetPosition()))
|
||||
if (Mpd->EnableOutput(w->Choice()))
|
||||
ShowMessage("Output \"%s\" enabled", w->Current().first.c_str());
|
||||
w->Current().second = 1;
|
||||
w->BoldOption(w->Choice(), 1);
|
||||
|
||||
Reference in New Issue
Block a user