Skip to content

Commit

Permalink
UI: Set UseFloatingWatermark to false when the watermark is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
sovervo committed Oct 31, 2024
1 parent b21740c commit 7f2e694
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 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,10 @@ 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 7f2e694

Please sign in to comment.