1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 14:12:56 +08:00

Remove onShowDeletedChanged function

This commit is contained in:
Andrei Zavatski 2019-10-15 11:30:50 +03:00
parent b2885e7b13
commit 213f00556d

View File

@ -244,17 +244,15 @@ namespace osu.Game.Overlays.Comments
protected override void LoadComplete()
{
ShowDeleted.BindValueChanged(onShowDeletedChanged, true);
ShowDeleted.BindValueChanged(show =>
{
if (comment.IsDeleted)
this.FadeTo(show.NewValue ? 1 : 0);
}, true);
childrenExpanded.BindValueChanged(expanded => childCommentsVisibilityContainer.FadeTo(expanded.NewValue ? 1 : 0), true);
base.LoadComplete();
}
private void onShowDeletedChanged(ValueChangedEvent<bool> show)
{
if (comment.IsDeleted)
this.FadeTo(show.NewValue ? 1 : 0);
}
private class ChevronButton : ShowChildrenButton
{
private readonly SpriteIcon icon;