mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:20:04 +08:00
Use disabled state instead of hiding button
This commit is contained in:
parent
ba3a7a0501
commit
bd627534b7
@ -227,11 +227,11 @@ namespace osu.Game.Tournament.Screens
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(TournamentStorage storage)
|
||||
{
|
||||
startupTournament = storage.CurrentTournament.Value;
|
||||
|
||||
dropdown.Current = storage.CurrentTournament;
|
||||
dropdown.Items = storage.ListTournaments();
|
||||
dropdown.Current.BindValueChanged(v => Button.FadeTo(v.NewValue == startupTournament ? 0 : 1));
|
||||
|
||||
startupTournament = storage.CurrentTournament.Value;
|
||||
dropdown.Current.BindValueChanged(v => Button.Enabled.Value = v.NewValue != startupTournament, true);
|
||||
|
||||
Action = () => game.GracefullyExit();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user