mirror of https://github.com/ppy/osu
Rewrite logic slightly to better convey meaning of textbox clear
This commit is contained in:
parent
94fa5e2ef2
commit
970b1951ac
|
@ -153,9 +153,10 @@ private void chatTextBoxChange(ValueChangedEvent<string> change)
|
|||
|
||||
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…
Reference in New Issue