mirror of https://github.com/ppy/osu
Change local bindings instead of room bindings.
This commit is contained in:
parent
90e178821a
commit
c72281d0f2
|
@ -178,17 +178,14 @@ protected override void PopOut()
|
|||
|
||||
private void apply()
|
||||
{
|
||||
if (room != null)
|
||||
{
|
||||
room.Name.Value = NameField.Text;
|
||||
room.Availability.Value = AvailabilityPicker.Current.Value;
|
||||
room.Type.Value = TypePicker.Current.Value;
|
||||
nameBind.Value = NameField.Text;
|
||||
availabilityBind.Value = AvailabilityPicker.Current.Value;
|
||||
typeBind.Value = TypePicker.Current.Value;
|
||||
|
||||
if (int.TryParse(MaxParticipantsField.Text, out int max))
|
||||
room.MaxParticipants.Value = max;
|
||||
else
|
||||
room.MaxParticipants.Value = null;
|
||||
}
|
||||
if (int.TryParse(MaxParticipantsField.Text, out int max))
|
||||
maxParticipantsBind.Value = max;
|
||||
else
|
||||
maxParticipantsBind.Value = null;
|
||||
|
||||
Hide();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue