mirror of
https://github.com/ppy/osu.git
synced 2024-11-13 19:27:31 +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()
|
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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user