1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 13:03:21 +08:00

Fix unresolvable dependency in settings test scene

This commit is contained in:
Dean Herbert 2020-10-06 21:28:59 +09:00
parent e8b34ba4ac
commit b2dad67ade

View File

@ -23,7 +23,7 @@ namespace osu.Game.Overlays.Settings.Sections.General
private SettingsButton checkForUpdatesButton;
[Resolved]
[Resolved(CanBeNull = true)]
private NotificationOverlay notifications { get; set; }
[BackgroundDependencyLoader(true)]
@ -47,7 +47,7 @@ namespace osu.Game.Overlays.Settings.Sections.General
{
if (!t.Result)
{
notifications.Post(new SimpleNotification
notifications?.Post(new SimpleNotification
{
Text = $"You are running the latest release ({game.Version})",
Icon = FontAwesome.Solid.CheckCircle,