diff options
Diffstat (limited to 'Source/Core/DolphinWX/Input/InputConfigDiag.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/Input/InputConfigDiag.cpp | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/Source/Core/DolphinWX/Input/InputConfigDiag.cpp b/Source/Core/DolphinWX/Input/InputConfigDiag.cpp index 15c213ac94..5d8bf9615e 100644 --- a/Source/Core/DolphinWX/Input/InputConfigDiag.cpp +++ b/Source/Core/DolphinWX/Input/InputConfigDiag.cpp @@ -915,25 +915,23 @@ void InputConfigDialog::UpdateDeviceComboBox() void InputConfigDialog::RefreshDevices(wxCommandEvent&) { - bool was_unpaused = Core::PauseAndLock(true); + Core::RunAsCPUThread([&] { + // refresh devices + g_controller_interface.RefreshDevices(); - // refresh devices - g_controller_interface.RefreshDevices(); + // update all control references + UpdateControlReferences(); - // update all control references - UpdateControlReferences(); + // update device cbox + UpdateDeviceComboBox(); - // update device cbox - UpdateDeviceComboBox(); + Wiimote::LoadConfig(); + Keyboard::LoadConfig(); + Pad::LoadConfig(); + HotkeyManagerEmu::LoadConfig(); - Wiimote::LoadConfig(); - Keyboard::LoadConfig(); - Pad::LoadConfig(); - HotkeyManagerEmu::LoadConfig(); - - UpdateGUI(); - - Core::PauseAndLock(false, was_unpaused); + UpdateGUI(); + }); } ControlGroupBox::~ControlGroupBox() |
