mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 13:23:22 +08:00
Fix unresolvable dependency in settings test scene
This commit is contained in:
parent
e8b34ba4ac
commit
b2dad67ade
@ -23,7 +23,7 @@ namespace osu.Game.Overlays.Settings.Sections.General
|
|||||||
|
|
||||||
private SettingsButton checkForUpdatesButton;
|
private SettingsButton checkForUpdatesButton;
|
||||||
|
|
||||||
[Resolved]
|
[Resolved(CanBeNull = true)]
|
||||||
private NotificationOverlay notifications { get; set; }
|
private NotificationOverlay notifications { get; set; }
|
||||||
|
|
||||||
[BackgroundDependencyLoader(true)]
|
[BackgroundDependencyLoader(true)]
|
||||||
@ -47,7 +47,7 @@ namespace osu.Game.Overlays.Settings.Sections.General
|
|||||||
{
|
{
|
||||||
if (!t.Result)
|
if (!t.Result)
|
||||||
{
|
{
|
||||||
notifications.Post(new SimpleNotification
|
notifications?.Post(new SimpleNotification
|
||||||
{
|
{
|
||||||
Text = $"You are running the latest release ({game.Version})",
|
Text = $"You are running the latest release ({game.Version})",
|
||||||
Icon = FontAwesome.Solid.CheckCircle,
|
Icon = FontAwesome.Solid.CheckCircle,
|
||||||
|
Loading…
Reference in New Issue
Block a user