diff options
| author | Lioncash <mathew1800@gmail.com> | 2016-11-08 20:52:45 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2016-11-08 21:19:24 -0500 |
| commit | 2acf3570e00b370fd6f09a6794a1dcd7ee02829e (patch) | |
| tree | bc6ebd45ba2591f18db14f7989c7f99c1b358aec /Source/Core/DolphinWX/Config/PathConfigPane.cpp | |
| parent | e05553acfc23896b710314434535e4e006373885 (diff) | |
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) |
