Remove empty strings from button_text before adding buttons

This commit is contained in:
SutandoTsukai181 2020-05-24 19:50:08 +03:00
parent c4ba7b3626
commit 1255d94baa

View file

@ -201,6 +201,7 @@ Frontend::KeyboardConfig SoftwareKeyboard::ToFrontendConfig(
});
if (frontend_config.has_custom_button_text) {
for (const auto& text : config.button_text) {
if (text.front() != 0)
frontend_config.button_text.push_back(Common::UTF16BufferToUTF8(text));
}
}