mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-30 13:24:16 +01:00
Merge pull request #5362 from SutandoTsukai181/swkbd
applets/swkbd: Fix button order received from button_text
This commit is contained in:
commit
028609d548
@ -49,7 +49,7 @@ QtKeyboardDialog::QtKeyboardDialog(QWidget* parent, QtKeyboard* keyboard_)
|
|||||||
break;
|
break;
|
||||||
case ButtonConfig::Dual:
|
case ButtonConfig::Dual:
|
||||||
buttons->addButton(config.has_custom_button_text
|
buttons->addButton(config.has_custom_button_text
|
||||||
? QString::fromStdString(config.button_text[1])
|
? QString::fromStdString(config.button_text[2])
|
||||||
: tr(SWKBD_BUTTON_OKAY),
|
: tr(SWKBD_BUTTON_OKAY),
|
||||||
QDialogButtonBox::ButtonRole::AcceptRole);
|
QDialogButtonBox::ButtonRole::AcceptRole);
|
||||||
buttons->addButton(config.has_custom_button_text
|
buttons->addButton(config.has_custom_button_text
|
||||||
@ -59,7 +59,7 @@ QtKeyboardDialog::QtKeyboardDialog(QWidget* parent, QtKeyboard* keyboard_)
|
|||||||
break;
|
break;
|
||||||
case ButtonConfig::Single:
|
case ButtonConfig::Single:
|
||||||
buttons->addButton(config.has_custom_button_text
|
buttons->addButton(config.has_custom_button_text
|
||||||
? QString::fromStdString(config.button_text[0])
|
? QString::fromStdString(config.button_text[2])
|
||||||
: tr(SWKBD_BUTTON_OKAY),
|
: tr(SWKBD_BUTTON_OKAY),
|
||||||
QDialogButtonBox::ButtonRole::AcceptRole);
|
QDialogButtonBox::ButtonRole::AcceptRole);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user