mirror of https://github.com/ppy/osu
Fix failing testcase
This commit is contained in:
parent
6a5f0eca18
commit
e4a72c0c64
|
@ -105,13 +105,13 @@ public ButtonSystem()
|
||||||
buttonArea.AddRange(buttonsTopLevel);
|
buttonArea.AddRange(buttonsTopLevel);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Resolved]
|
[Resolved(CanBeNull = true)]
|
||||||
private OsuGame game { get; set; }
|
private OsuGame game { get; set; }
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private APIAccess api { get; set; }
|
private APIAccess api { get; set; }
|
||||||
|
|
||||||
[Resolved]
|
[Resolved(CanBeNull = true)]
|
||||||
private NotificationOverlay notifications { get; set; }
|
private NotificationOverlay notifications { get; set; }
|
||||||
|
|
||||||
[BackgroundDependencyLoader(true)]
|
[BackgroundDependencyLoader(true)]
|
||||||
|
@ -128,7 +128,7 @@ private void onMulti()
|
||||||
{
|
{
|
||||||
if (!api.IsLoggedIn)
|
if (!api.IsLoggedIn)
|
||||||
{
|
{
|
||||||
notifications.Post(new SimpleNotification
|
notifications?.Post(new SimpleNotification
|
||||||
{
|
{
|
||||||
Text = "You gotta be logged in to multi 'yo!",
|
Text = "You gotta be logged in to multi 'yo!",
|
||||||
Icon = FontAwesome.fa_globe
|
Icon = FontAwesome.fa_globe
|
||||||
|
@ -136,6 +136,7 @@ private void onMulti()
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
OnMulti?.Invoke();
|
OnMulti?.Invoke();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue