mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 14:19:02 +00:00
DolphinWX: Reimplement cheat listbox updating, but without a global
Just use event handling.
This commit is contained in:
parent
90eaf9519c
commit
e7939a6b44
5 changed files with 17 additions and 1 deletions
|
@ -17,6 +17,9 @@
|
|||
#include "DolphinWX/WxUtils.h"
|
||||
#include "DolphinWX/Cheats/CreateCodeDialog.h"
|
||||
|
||||
// Fired when an ActionReplay code is created.
|
||||
wxDEFINE_EVENT(UPDATE_CHEAT_LIST_EVENT, wxCommandEvent);
|
||||
|
||||
CreateCodeDialog::CreateCodeDialog(wxWindow* const parent, const u32 address)
|
||||
: wxDialog(parent, -1, _("Create AR Code"))
|
||||
, m_code_address(address)
|
||||
|
@ -95,6 +98,9 @@ void CreateCodeDialog::PressOK(wxCommandEvent& ev)
|
|||
//ActionReplay::UpdateActiveList();
|
||||
}
|
||||
|
||||
// Propagate back to the parent frame to update the cheat list.
|
||||
GetEventHandler()->AddPendingEvent(wxCommandEvent(UPDATE_CHEAT_LIST_EVENT));
|
||||
|
||||
Close();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue