mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Rewrite logic slightly to better convey meaning of textbox clear
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user