Add reverse binding for max attempts (currently unused but good for safety)

This commit is contained in:
Dean Herbert 2021-02-03 22:02:40 +09:00
parent 3fe190cfbe
commit 9d7164816c

View File

@ -280,6 +280,7 @@ namespace osu.Game.Screens.OnlinePlay.Playlists
RoomName.BindValueChanged(name => NameField.Text = name.NewValue, true);
Availability.BindValueChanged(availability => AvailabilityPicker.Current.Value = availability.NewValue, true);
MaxParticipants.BindValueChanged(count => MaxParticipantsField.Text = count.NewValue?.ToString(), true);
MaxAttempts.BindValueChanged(count => MaxAttemptsField.Text = count.NewValue?.ToString(), true);
Duration.BindValueChanged(duration => DurationField.Current.Value = duration.NewValue ?? TimeSpan.FromMinutes(30), true);
playlist.Items.BindTo(Playlist);