mirror of
https://github.com/ppy/osu.git
synced 2025-02-16 04:53:52 +08:00
Fix test failures due to dependency becoming required
This commit is contained in:
parent
d0fccb30ec
commit
7a4ea90bda
@ -35,7 +35,7 @@ namespace osu.Game.Overlays.Settings.Sections.General
|
|||||||
private Storage storage { get; set; } = null!;
|
private Storage storage { get; set; } = null!;
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(OsuConfigManager config, OsuGame game)
|
private void load(OsuConfigManager config, OsuGame? game)
|
||||||
{
|
{
|
||||||
Add(new SettingsEnumDropdown<ReleaseStream>
|
Add(new SettingsEnumDropdown<ReleaseStream>
|
||||||
{
|
{
|
||||||
@ -57,7 +57,7 @@ namespace osu.Game.Overlays.Settings.Sections.General
|
|||||||
{
|
{
|
||||||
notifications?.Post(new SimpleNotification
|
notifications?.Post(new SimpleNotification
|
||||||
{
|
{
|
||||||
Text = GeneralSettingsStrings.RunningLatestRelease(game.Version),
|
Text = GeneralSettingsStrings.RunningLatestRelease(game!.Version),
|
||||||
Icon = FontAwesome.Solid.CheckCircle,
|
Icon = FontAwesome.Solid.CheckCircle,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -87,7 +87,7 @@ namespace osu.Game.Overlays.Settings.Sections.General
|
|||||||
Add(new SettingsButton
|
Add(new SettingsButton
|
||||||
{
|
{
|
||||||
Text = GeneralSettingsStrings.ChangeFolderLocation,
|
Text = GeneralSettingsStrings.ChangeFolderLocation,
|
||||||
Action = () => game.PerformFromScreen(menu => menu.Push(new MigrationSelectScreen()))
|
Action = () => game?.PerformFromScreen(menu => menu.Push(new MigrationSelectScreen()))
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user