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:
parent
94fa5e2ef2
commit
970b1951ac
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user