mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 17:19:44 -06:00
InputConfigDiag: Don't prevent closing dialog if device not found
There is no reason to prevent the user from closing the config dialog if the device is not found. It's not very good UX… Also fixes ExpressionParser to return NO_DEVICE if the device doesn't exist instead of SUCCESS.
This commit is contained in:
@ -320,7 +320,8 @@ bool ControlDialog::Validate()
|
||||
|
||||
UpdateGUI();
|
||||
|
||||
return control_reference->parse_error == EXPRESSION_PARSE_SUCCESS;
|
||||
return (control_reference->parse_error == EXPRESSION_PARSE_SUCCESS ||
|
||||
control_reference->parse_error == EXPRESSION_PARSE_NO_DEVICE);
|
||||
}
|
||||
|
||||
void GamepadPage::SetDevice(wxCommandEvent&)
|
||||
|
Reference in New Issue
Block a user