UI: Set UseFloatingWatermark to false when the watermark is empty

This commit is contained in:
dima_florea 2024-10-31 20:54:40 +03:00
parent b21740c931
commit 7f2e694e25

View File

@ -34,6 +34,10 @@ namespace Ryujinx.Ava.UI.Controls
Input.Watermark = _placeholder;
if (string.IsNullOrWhiteSpace(Input.Watermark)) {
Input.UseFloatingWatermark = false;
}
Input.AddHandler(TextInputEvent, Message_TextInput, RoutingStrategies.Tunnel, true);
}