1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-22 22:17:46 +08:00

Change field to local variable

This commit is contained in:
Dean Herbert 2021-01-11 14:45:01 +09:00
parent 7a7c583ded
commit c9466426b7

View File

@ -9,15 +9,13 @@ namespace osu.Game.Tournament.Screens.Setup
{
private OsuDropdown<string> dropdown;
private string startupTournament;
[Resolved]
private TournamentGameBase game { get; set; }
[BackgroundDependencyLoader]
private void load(TournamentStorage storage)
{
startupTournament = storage.CurrentTournament.Value;
string startupTournament = storage.CurrentTournament.Value;
dropdown.Current = storage.CurrentTournament;
dropdown.Items = storage.ListTournaments();
@ -40,4 +38,4 @@ namespace osu.Game.Tournament.Screens.Setup
return drawable;
}
}
}
}