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