diff options
| author | Lioncash <mathew1800@gmail.com> | 2015-03-18 20:33:20 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2015-03-18 22:48:05 -0400 |
| commit | b459a8ec61c1c10f4484edaa02908f9ed90b1e15 (patch) | |
| tree | 91dbabe24b0e02d99a225bc5f0c4fee82518cbc3 /Source/Core/DolphinWX/Config/PathConfigPane.cpp | |
| parent | febd3909c6be90ad289a3a8f934fdb4bea70c5fa (diff) | |
DolphinWX: Propagate event to refresh the game list
Prior to this refactor, certain options would cause the game list to refresh when the config modal dialog is closed (such as adding a folder to the path list). This restores that functionality.
Diffstat (limited to 'Source/Core/DolphinWX/Config/PathConfigPane.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/Config/PathConfigPane.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/DolphinWX/Config/PathConfigPane.cpp b/Source/Core/DolphinWX/Config/PathConfigPane.cpp index f35faccc21..92ff816912 100644 --- a/Source/Core/DolphinWX/Config/PathConfigPane.cpp +++ b/Source/Core/DolphinWX/Config/PathConfigPane.cpp @@ -19,6 +19,7 @@ #include "DolphinWX/Frame.h" #include "DolphinWX/Main.h" #include "DolphinWX/WxUtils.h" +#include "DolphinWX/Config/ConfigMain.h" #include "DolphinWX/Config/PathConfigPane.h" PathConfigPane::PathConfigPane(wxWindow* panel, wxWindowID id) @@ -118,7 +119,7 @@ void PathConfigPane::OnRecursiveISOCheckBoxChanged(wxCommandEvent& event) { SConfig::GetInstance().m_RecursiveISOFolder = m_recursive_iso_paths_checkbox->IsChecked(); - // TODO: Fire an event back to ConfigMain, setting bRefreshList to true. + AddPendingEvent(wxCommandEvent(wxDOLPHIN_CFG_REFRESH_LIST)); } void PathConfigPane::OnAddISOPath(wxCommandEvent& event) @@ -134,7 +135,7 @@ void PathConfigPane::OnAddISOPath(wxCommandEvent& event) } else { - // TODO: Send event back to ConfigMain setting bRefreshList to true. + AddPendingEvent(wxCommandEvent(wxDOLPHIN_CFG_REFRESH_LIST)); m_iso_paths_listbox->Append(dialog.GetPath()); } } @@ -144,7 +145,7 @@ void PathConfigPane::OnAddISOPath(wxCommandEvent& event) void PathConfigPane::OnRemoveISOPath(wxCommandEvent& event) { - // TODO: Set event back to ConfigMain to set bRefreshList to true. + AddPendingEvent(wxCommandEvent(wxDOLPHIN_CFG_REFRESH_LIST)); m_iso_paths_listbox->Delete(m_iso_paths_listbox->GetSelection()); // This seems to not be activated on Windows when it should be. wxw bug? |
