mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 22:41:25 +12:00
overlays/osk: do not change the preview text on empty input
This prevents that the placeholder disappears
This commit is contained in:
parent
f1127f1894
commit
a1f70bf96e
1 changed files with 5 additions and 0 deletions
|
@ -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())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue