1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-15 13:27:20 +08:00

Rewrite logic slightly to better convey meaning of textbox clear

This commit is contained in:
Bartłomiej Dach 2022-04-03 14:23:45 +02:00
parent 94fa5e2ef2
commit 970b1951ac
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -153,9 +153,10 @@ namespace osu.Game.Overlays.Chat
private void chatTextBoxCommit(TextBox sender, bool newText)
{
if (!ShowSearch.Value)
OnChatMessageCommitted?.Invoke(sender.Text);
if (ShowSearch.Value)
return;
OnChatMessageCommitted?.Invoke(sender.Text);
sender.Text = string.Empty;
}
}