mirror of
https://github.com/ppy/osu
synced 2025-01-23 14:22:51 +00:00
Simplify text clear and placeholder change in ChatTextBox
This commit is contained in:
parent
fff30e8a6e
commit
b9421d1415
@ -20,8 +20,10 @@ namespace osu.Game.Overlays.Chat
|
||||
|
||||
ShowSearch.BindValueChanged(change =>
|
||||
{
|
||||
PlaceholderText = change.NewValue ? "type here to search" : "type here";
|
||||
Schedule(() => Text = string.Empty);
|
||||
bool showSearch = change.NewValue;
|
||||
|
||||
PlaceholderText = showSearch ? "type here to search" : "type here";
|
||||
Text = string.Empty;
|
||||
}, true);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user