overlays/osk: do not change the preview text on empty input
This prevents that the placeholder disappears
This commit is contained in:
@@ -558,6 +558,11 @@ namespace rsx
|
|||||||
|
|
||||||
void osk_dialog::on_default_callback(const std::u32string& str)
|
void osk_dialog::on_default_callback(const std::u32string& str)
|
||||||
{
|
{
|
||||||
|
if (str.empty())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Append to output text
|
// Append to output text
|
||||||
if (m_preview.text == get_placeholder())
|
if (m_preview.text == get_placeholder())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user