From e4a72c0c645103d0ee9b0553497459810fc04fa7 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Wed, 26 Dec 2018 13:18:36 +0900 Subject: [PATCH] Fix failing testcase --- osu.Game/Screens/Menu/ButtonSystem.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/osu.Game/Screens/Menu/ButtonSystem.cs b/osu.Game/Screens/Menu/ButtonSystem.cs index 943dfa53af..14eae54cb2 100644 --- a/osu.Game/Screens/Menu/ButtonSystem.cs +++ b/osu.Game/Screens/Menu/ButtonSystem.cs @@ -105,13 +105,13 @@ namespace osu.Game.Screens.Menu buttonArea.AddRange(buttonsTopLevel); } - [Resolved] + [Resolved(CanBeNull = true)] private OsuGame game { get; set; } [Resolved] private APIAccess api { get; set; } - [Resolved] + [Resolved(CanBeNull = true)] private NotificationOverlay notifications { get; set; } [BackgroundDependencyLoader(true)] @@ -128,7 +128,7 @@ namespace osu.Game.Screens.Menu { if (!api.IsLoggedIn) { - notifications.Post(new SimpleNotification + notifications?.Post(new SimpleNotification { Text = "You gotta be logged in to multi 'yo!", Icon = FontAwesome.fa_globe @@ -136,6 +136,7 @@ namespace osu.Game.Screens.Menu return; } + OnMulti?.Invoke(); }