1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-06 07:42:55 +08:00

Make Actions nullable

This commit is contained in:
Dean Herbert 2023-02-14 13:54:00 +09:00
parent 5006dbe3db
commit f0ebb920b9

View File

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