Merge pull request #14131 from peppy/fix-constructor-possible-nullref

Fix new possible nullref inspection due to delegate initialisation in constructor
This commit is contained in:
Dan Balasescu 2021-08-05 13:59:32 +09:00 committed by GitHub
commit afc1585033
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,8 +61,6 @@ namespace osu.Game.Screens.Play
protected GameplayMenuOverlay()
{
RelativeSizeAxes = Axes.Both;
State.ValueChanged += s => InternalButtons.Deselect();
}
[BackgroundDependencyLoader]
@ -142,6 +140,8 @@ namespace osu.Game.Screens.Play
},
};
State.ValueChanged += s => InternalButtons.Deselect();
updateRetryCount();
}