mirror of
https://github.com/dborth/snes9xgx.git
synced 2025-01-24 00:51:14 +01:00
Fix bug where Save SRAM button could be focused when disabled (#1026)
This commit is contained in:
parent
4327670959
commit
aa9d1f679e
@ -268,10 +268,13 @@ void GuiSaveBrowser::Update(GuiTrigger * t)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
if(saveBtn[selectedItem-1]->IsVisible())
|
||||||
{
|
{
|
||||||
selectedItem -= 1;
|
selectedItem -= 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if(t->Down() || arrowDownBtn->GetState() == STATE_CLICKED)
|
else if(t->Down() || arrowDownBtn->GetState() == STATE_CLICKED)
|
||||||
{
|
{
|
||||||
if(selectedItem >= SAVELISTSIZE-2)
|
if(selectedItem >= SAVELISTSIZE-2)
|
||||||
@ -306,10 +309,13 @@ void GuiSaveBrowser::Update(GuiTrigger * t)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
if(saveBtn[selectedItem-2]->IsVisible())
|
||||||
{
|
{
|
||||||
selectedItem -= 2;
|
selectedItem -= 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
endNavigation:
|
endNavigation:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user