mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-08 09:40:29 +00:00
Merge pull request #514 from jordan-woyak/input-diag-win-crash
Fix InputConfigDiag crash on Windows. (GCode issue 7384)
This commit is contained in:
commit
91502b4fc8
@ -512,8 +512,8 @@ void ControlDialog::DetectControl(wxCommandEvent& event)
|
|||||||
{
|
{
|
||||||
btn->SetLabel(_("[ waiting ]"));
|
btn->SetLabel(_("[ waiting ]"));
|
||||||
|
|
||||||
// apparently, this makes the "waiting" text work on Linux
|
// This makes the "waiting" text work on Linux. true (only if needed) prevents crash on Windows
|
||||||
wxTheApp->Yield();
|
wxTheApp->Yield(true);
|
||||||
|
|
||||||
std::lock_guard<std::recursive_mutex> lk(m_plugin.controls_lock);
|
std::lock_guard<std::recursive_mutex> lk(m_plugin.controls_lock);
|
||||||
Device::Control* const ctrl = control_reference->Detect(DETECT_WAIT_TIME, dev);
|
Device::Control* const ctrl = control_reference->Detect(DETECT_WAIT_TIME, dev);
|
||||||
@ -536,8 +536,8 @@ void GamepadPage::DetectControl(wxCommandEvent& event)
|
|||||||
{
|
{
|
||||||
btn->SetLabel(_("[ waiting ]"));
|
btn->SetLabel(_("[ waiting ]"));
|
||||||
|
|
||||||
// apparently, this makes the "waiting" text work on Linux
|
// This makes the "waiting" text work on Linux. true (only if needed) prevents crash on Windows
|
||||||
wxTheApp->Yield();
|
wxTheApp->Yield(true);
|
||||||
|
|
||||||
std::lock_guard<std::recursive_mutex> lk(m_plugin.controls_lock);
|
std::lock_guard<std::recursive_mutex> lk(m_plugin.controls_lock);
|
||||||
Device::Control* const ctrl = btn->control_reference->Detect(DETECT_WAIT_TIME, dev);
|
Device::Control* const ctrl = btn->control_reference->Detect(DETECT_WAIT_TIME, dev);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user