diff options
| author | Mat M <mathew1800@gmail.com> | 2016-11-10 07:31:31 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-11-10 07:31:31 -0500 |
| commit | 0b9562b0d512db0ac6dc3220506774d8512138eb (patch) | |
| tree | eeba613d78fe9641edcaf3745638cf55b0825cd1 /Source/Core/DolphinWX/Config/PathConfigPane.cpp | |
| parent | a7789edc8e15e22d31351cfbc81e365b3bee5ace (diff) | |
| parent | be04215857a2cfec29acc9579607bb416dee6a6f (diff) | |
Merge pull request #4434 from lioncash/path
PathConfigPane: Eliminate main frame global usage
Diffstat (limited to 'Source/Core/DolphinWX/Config/PathConfigPane.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/Config/PathConfigPane.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/DolphinWX/Config/PathConfigPane.cpp b/Source/Core/DolphinWX/Config/PathConfigPane.cpp index acd56b7747..cb4943f9bf 100644 --- a/Source/Core/DolphinWX/Config/PathConfigPane.cpp +++ b/Source/Core/DolphinWX/Config/PathConfigPane.cpp @@ -21,7 +21,6 @@ #include "DiscIO/NANDContentLoader.h" #include "DolphinWX/Config/ConfigMain.h" #include "DolphinWX/Frame.h" -#include "DolphinWX/Main.h" #include "DolphinWX/WxEventUtils.h" #include "DolphinWX/WxUtils.h" @@ -226,7 +225,9 @@ void PathConfigPane::OnNANDRootChanged(wxCommandEvent& event) DiscIO::CNANDContentManager::Access().ClearCache(); - main_frame->UpdateWiiMenuChoice(); + wxCommandEvent update_event{DOLPHIN_EVT_UPDATE_LOAD_WII_MENU_ITEM, GetId()}; + update_event.SetEventObject(this); + AddPendingEvent(update_event); } void PathConfigPane::OnDumpPathChanged(wxCommandEvent& event) |
