mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 00:59:44 -06:00
InputConfigDialog: Don't show "..." for complicated expressions
Just show the actual expression. We need to do a bit of mangling here as wx has no way to turn off mnemonics parsing, so do that as well.
This commit is contained in:
@ -240,10 +240,9 @@ void GamepadPage::UpdateGUI()
|
||||
, e = (*g)->control_buttons.end();
|
||||
for (; i!=e; ++i) {
|
||||
ControllerInterface::ControlReference *r = (*i)->control_reference;
|
||||
if (r->IsComplicated())
|
||||
(*i)->SetLabel("...");
|
||||
else
|
||||
(*i)->SetLabel(StrToWxStr((*i)->control_reference->expression));
|
||||
wxString expr = StrToWxStr((*i)->control_reference->expression);
|
||||
expr.Replace("&", "&&");
|
||||
(*i)->SetLabel(expr);
|
||||
}
|
||||
|
||||
// cboxes
|
||||
|
Reference in New Issue
Block a user