Cleanup centre header container

This commit is contained in:
smoogipoo
2019-04-25 20:05:59 +09:00
parent 9d5b81165e
commit 2caea38f8c
5 changed files with 26 additions and 23 deletions

View File

@ -118,7 +118,7 @@ namespace osu.Game.Overlays.Profile
infoTabControl.AddItem("Info");
infoTabControl.AddItem("Modding");
centreHeaderContainer.DetailsVisibilityAction = visible => detailHeaderContainer.Alpha = visible ? 0 : 1;
centreHeaderContainer.DetailsVisible.BindValueChanged(visible => detailHeaderContainer.Alpha = visible.NewValue ? 1 : 0, true);
User.ValueChanged += e => updateDisplay(e.NewValue);
}