mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-12-24 00:41:49 +01:00
Remove empty strings from button_text before adding buttons
This commit is contained in:
parent
c4ba7b3626
commit
1255d94baa
@ -201,6 +201,7 @@ Frontend::KeyboardConfig SoftwareKeyboard::ToFrontendConfig(
|
|||||||
});
|
});
|
||||||
if (frontend_config.has_custom_button_text) {
|
if (frontend_config.has_custom_button_text) {
|
||||||
for (const auto& text : config.button_text) {
|
for (const auto& text : config.button_text) {
|
||||||
|
if (text.front() != 0)
|
||||||
frontend_config.button_text.push_back(Common::UTF16BufferToUTF8(text));
|
frontend_config.button_text.push_back(Common::UTF16BufferToUTF8(text));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user