mirror of https://github.com/ppy/osu
Fix being able to press enter to create matches
This commit is contained in:
parent
87e501d4ba
commit
3ee698cfa0
|
@ -133,7 +133,6 @@ private void load(OsuColour colours)
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
TabbableContentContainer = this,
|
TabbableContentContainer = this,
|
||||||
OnCommit = (sender, text) => apply(),
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
new Section("Duration")
|
new Section("Duration")
|
||||||
|
@ -196,7 +195,6 @@ private void load(OsuColour colours)
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
TabbableContentContainer = this,
|
TabbableContentContainer = this,
|
||||||
ReadOnly = true,
|
ReadOnly = true,
|
||||||
OnCommit = (sender, text) => apply()
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
new Section("Password (optional)")
|
new Section("Password (optional)")
|
||||||
|
@ -207,7 +205,6 @@ private void load(OsuColour colours)
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
TabbableContentContainer = this,
|
TabbableContentContainer = this,
|
||||||
ReadOnly = true,
|
ReadOnly = true,
|
||||||
OnCommit = (sender, text) => apply()
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -331,6 +328,9 @@ protected override void Update()
|
||||||
|
|
||||||
private void apply()
|
private void apply()
|
||||||
{
|
{
|
||||||
|
if (!ApplyButton.Enabled.Value)
|
||||||
|
return;
|
||||||
|
|
||||||
hideError();
|
hideError();
|
||||||
|
|
||||||
RoomName.Value = NameField.Text;
|
RoomName.Value = NameField.Text;
|
||||||
|
|
Loading…
Reference in New Issue