1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 01:53:01 +08:00

Do not be lenient on nullability of dropdown

This commit is contained in:
Salman Ahmed 2024-07-08 08:54:05 +03:00
parent 58e236a247
commit 7dc901df11

View File

@ -1,6 +1,7 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Diagnostics;
using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Audio;
@ -415,7 +416,8 @@ namespace osu.Game.Graphics.UserInterface
private void updateChevron()
{
bool open = Dropdown?.Menu.State == MenuState.Open;
Debug.Assert(Dropdown != null);
bool open = Dropdown.Menu.State == MenuState.Open;
Chevron.ScaleTo(open ? new Vector2(1f, -1f) : Vector2.One, 300, Easing.OutQuint);
}