mirror of
https://github.com/ppy/osu
synced 2024-12-11 17:42:28 +00:00
Permit nulls to allow test cases to run successfully
This commit is contained in:
parent
0082640548
commit
febf0348be
@ -49,7 +49,7 @@ namespace osu.Game.Overlays.Direct
|
||||
SetInfo = setInfo;
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
[BackgroundDependencyLoader(permitNulls: true)]
|
||||
private void load(APIAccess api, BeatmapManager beatmaps, OsuColour colours, NotificationOverlay notifications)
|
||||
{
|
||||
this.api = api;
|
||||
@ -110,6 +110,8 @@ namespace osu.Game.Overlays.Direct
|
||||
|
||||
protected void StartDownload()
|
||||
{
|
||||
if (api == null) return;
|
||||
|
||||
if (!api.LocalUser.Value.IsSupporter)
|
||||
{
|
||||
notifications.Post(new SimpleNotification
|
||||
|
Loading…
Reference in New Issue
Block a user