mirror of
https://github.com/ppy/osu
synced 2025-02-03 03:42:15 +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 =>
|
ShowSearch.BindValueChanged(change =>
|
||||||
{
|
{
|
||||||
PlaceholderText = change.NewValue ? "type here to search" : "type here";
|
bool showSearch = change.NewValue;
|
||||||
Schedule(() => Text = string.Empty);
|
|
||||||
|
PlaceholderText = showSearch ? "type here to search" : "type here";
|
||||||
|
Text = string.Empty;
|
||||||
}, true);
|
}, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user