Make `Action`s nullable

This commit is contained in:
Dean Herbert 2023-02-14 13:54:00 +09:00
parent 5006dbe3db
commit f0ebb920b9
1 changed files with 4 additions and 4 deletions

View File

@ -17,8 +17,8 @@ namespace osu.Game.Screens.Select.FooterV2
{
public partial class FooterButtonRandomV2 : FooterButtonV2
{
public Action NextRandom { get; set; } = null!;
public Action PreviousRandom { get; set; } = null!;
public Action? NextRandom { get; set; }
public Action? PreviousRandom { get; set; }
private Container persistentText = null!;
private OsuSpriteText randomSpriteText = null!;
@ -83,11 +83,11 @@ private void load(OsuColour colour)
persistentText.FadeInFromZero(fade_time, Easing.In);
PreviousRandom.Invoke();
PreviousRandom?.Invoke();
}
else
{
NextRandom.Invoke();
NextRandom?.Invoke();
}
};
}