diff options
| author | JosJuice <josjuice@gmail.com> | 2017-07-22 12:42:55 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-22 12:42:55 +0200 |
| commit | 57affaff22c1beeb08b76d998d72fb6f44376a47 (patch) | |
| tree | 8d9e11ce3a2732b37c5c1bd24e13572a39e045df /Source/Core/DolphinWX/Input/InputConfigDiag.cpp | |
| parent | 2f0bec93cb3eb02f159461f13557bde4bd2771bb (diff) | |
| parent | 5729ac0fc685d42035dfa1c850672822a247851c (diff) | |
Merge pull request #5803 from leoetlino/pause-and-lock
Replace balanced Core::PauseAndLock calls with RunAsCPUThread
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() |
