DolphinWX: Reimplement cheat listbox updating, but without a global

Just use event handling.
This commit is contained in:
Lioncash
2014-10-18 21:28:36 -04:00
parent 90eaf9519c
commit e7939a6b44
5 changed files with 17 additions and 1 deletions

View File

@ -134,6 +134,7 @@ void wxCheatsWindow::Init_ChildControls()
button_cancel->Bind(wxEVT_BUTTON, &wxCheatsWindow::OnEvent_ButtonClose_Press, this);
Bind(wxEVT_CLOSE_WINDOW, &wxCheatsWindow::OnEvent_Close, this);
Bind(UPDATE_CHEAT_LIST_EVENT, &wxCheatsWindow::OnEvent_CheatsList_Update, this);
wxStdDialogButtonSizer* const sButtons = new wxStdDialogButtonSizer();
sButtons->AddButton(m_button_apply);
@ -243,6 +244,11 @@ void wxCheatsWindow::OnEvent_CheatsList_ItemToggled(wxCommandEvent& WXUNUSED (ev
}
}
void wxCheatsWindow::OnEvent_CheatsList_Update(wxCommandEvent& event)
{
Load_ARCodes();
}
void wxCheatsWindow::OnEvent_ApplyChanges_Press(wxCommandEvent& ev)
{
// Apply AR Code changes