Use explicit casts

This commit is contained in:
Dean Herbert 2022-12-12 17:38:39 +09:00
parent e76c56b03b
commit 05b5949810
1 changed files with 2 additions and 3 deletions

View File

@ -4,7 +4,6 @@
#nullable disable
using System;
using System.Linq;
using System.Threading;
using osu.Framework.Allocation;
using osu.Framework.Extensions.Color4Extensions;
@ -104,9 +103,9 @@ protected override FillFlowContainer CreateHeader()
{
var fill = base.CreateHeader();
var nestedFill = fill.Children.OfType<FillFlowContainer>().First();
var nestedFill = (FillFlowContainer)fill.Child;
var buildDisplay = nestedFill.Children.OfType<OsuHoverContainer>().First();
var buildDisplay = (OsuHoverContainer)nestedFill.Child;
buildDisplay.Scale = new Vector2(1.25f);
buildDisplay.Action = null;