mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 14:17:26 +08:00
Change local bindings instead of room bindings.
This commit is contained in:
parent
90e178821a
commit
c72281d0f2
@ -178,17 +178,14 @@ namespace osu.Game.Screens.Multi.Screens.Match.Settings
|
||||
|
||||
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
Block a user