Finalize changes

This commit is contained in:
Craftplacer
2020-05-07 23:04:18 +02:00
parent 836efe3f7c
commit c025814f40
3 changed files with 14 additions and 9 deletions

View File

@ -11,13 +11,10 @@ namespace osu.Game.Overlays.Settings.Sections.General
{
public class UpdateSettings : SettingsSubsection
{
[Resolved(CanBeNull = true)]
private UpdateManager updateManager { get; set; }
protected override string Header => "Updates";
[BackgroundDependencyLoader]
private void load(Storage storage, OsuConfigManager config, OsuGameBase game)
private void load(Storage storage, OsuConfigManager config, OsuGameBase game, UpdateManager updateManager)
{
Add(new SettingsEnumDropdown<ReleaseStream>
{
@ -28,7 +25,7 @@ namespace osu.Game.Overlays.Settings.Sections.General
Add(new SettingsButton
{
Text = "Check for updates",
Action = () => updateManager?.CheckForUpdate(),
Action = () => updateManager.CheckForUpdate(),
Enabled = { Value = game.IsDeployedBuild }
});