WX: Reload Wii config pane on config change

This commit is contained in:
Léo Lam 2017-08-03 02:14:37 +08:00
parent b2c41cec0a
commit e471505632
1 changed files with 3 additions and 0 deletions

View File

@ -42,6 +42,9 @@ WiiConfigPane::WiiConfigPane(wxWindow* parent, wxWindowID id) : wxPanel(parent,
InitializeGUI(); InitializeGUI();
LoadGUIValues(); LoadGUIValues();
BindEvents(); BindEvents();
// This is only safe because WiiConfigPane is owned by CConfigMain, which exists
// as long as the DolphinWX app exists.
Config::AddConfigChangedCallback([&] { Core::QueueHostJob([&] { LoadGUIValues(); }, true); });
} }
void WiiConfigPane::InitializeGUI() void WiiConfigPane::InitializeGUI()