1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 10:22:56 +08:00

Fix test failures due to dependency becoming required

This commit is contained in:
Bartłomiej Dach 2023-12-13 11:01:06 +01:00
parent d0fccb30ec
commit 7a4ea90bda
No known key found for this signature in database

View File

@ -35,7 +35,7 @@ namespace osu.Game.Overlays.Settings.Sections.General
private Storage storage { get; set; } = null!;
[BackgroundDependencyLoader]
private void load(OsuConfigManager config, OsuGame game)
private void load(OsuConfigManager config, OsuGame? game)
{
Add(new SettingsEnumDropdown<ReleaseStream>
{
@ -57,7 +57,7 @@ namespace osu.Game.Overlays.Settings.Sections.General
{
notifications?.Post(new SimpleNotification
{
Text = GeneralSettingsStrings.RunningLatestRelease(game.Version),
Text = GeneralSettingsStrings.RunningLatestRelease(game!.Version),
Icon = FontAwesome.Solid.CheckCircle,
});
}
@ -87,7 +87,7 @@ namespace osu.Game.Overlays.Settings.Sections.General
Add(new SettingsButton
{
Text = GeneralSettingsStrings.ChangeFolderLocation,
Action = () => game.PerformFromScreen(menu => menu.Push(new MigrationSelectScreen()))
Action = () => game?.PerformFromScreen(menu => menu.Push(new MigrationSelectScreen()))
});
}
}