Skip to content

Commit

Permalink
UI: Set UseFloatingWatermark to false when the watermark is empty (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
sovervo authored Nov 1, 2024
1 parent d7e17ab commit fb4ab5e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Ryujinx/UI/Applet/SwkbdAppletDialog.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ public SwkbdAppletDialog(string mainText, string secondaryText, string placehold

Input.Watermark = _placeholder;

if (string.IsNullOrWhiteSpace(Input.Watermark))
{
Input.UseFloatingWatermark = false;
}

Input.AddHandler(TextInputEvent, Message_TextInput, RoutingStrategies.Tunnel, true);
}

Expand Down

0 comments on commit fb4ab5e

Please sign in to comment.