mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Use disabled state instead of hiding button
This commit is contained in:
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user