1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-14 17:17:24 +08:00

Change local bindings instead of room bindings.

This commit is contained in:
DrabWeb 2018-08-24 19:27:16 -03:00
parent 90e178821a
commit c72281d0f2

View File

@ -178,17 +178,14 @@ namespace osu.Game.Screens.Multi.Screens.Match.Settings
private void apply() private void apply()
{ {
if (room != null) nameBind.Value = NameField.Text;
{ availabilityBind.Value = AvailabilityPicker.Current.Value;
room.Name.Value = NameField.Text; typeBind.Value = TypePicker.Current.Value;
room.Availability.Value = AvailabilityPicker.Current.Value;
room.Type.Value = TypePicker.Current.Value;
if (int.TryParse(MaxParticipantsField.Text, out int max)) if (int.TryParse(MaxParticipantsField.Text, out int max))
room.MaxParticipants.Value = max; maxParticipantsBind.Value = max;
else else
room.MaxParticipants.Value = null; maxParticipantsBind.Value = null;
}
Hide(); Hide();
} }