Simplify show/hide of text and search in `ChatTextBar`

This commit is contained in:
Jai Sharma 2022-03-30 21:01:28 +01:00
parent eec3fef7a6
commit fff30e8a6e
1 changed files with 4 additions and 10 deletions

View File

@ -108,16 +108,10 @@ protected override void LoadComplete()
ShowSearch.BindValueChanged(change =>
{
if (change.NewValue)
{
chattingTextContainer.Hide();
searchIconContainer.Show();
}
else
{
chattingTextContainer.Show();
searchIconContainer.Hide();
}
bool showSearch = change.NewValue;
chattingTextContainer.FadeTo(showSearch ? 0 : 1);
searchIconContainer.FadeTo(showSearch ? 1 : 0);
}, true);
currentChannel.BindValueChanged(change =>