mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-15 14:56:05 -04:00
添加验证服务器界面回车代表下一步
This commit is contained in:
parent
9bffc68c70
commit
b3fdbe021d
@ -95,6 +95,11 @@ public class AddAuthlibInjectorServerPane extends StackPane {
|
|||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private void onAddNext() {
|
private void onAddNext() {
|
||||||
|
if (btnAddNext.isDisabled())
|
||||||
|
return;
|
||||||
|
|
||||||
|
lblCreationWarning.setText("");
|
||||||
|
|
||||||
String url = fixInputUrl(txtServerUrl.getText());
|
String url = fixInputUrl(txtServerUrl.getText());
|
||||||
|
|
||||||
nextPane.showSpinner();
|
nextPane.showSpinner();
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<Label text="%account.injector.add" />
|
<Label text="%account.injector.add" />
|
||||||
</heading>
|
</heading>
|
||||||
<body>
|
<body>
|
||||||
<JFXTextField fx:id="txtServerUrl" promptText="%account.injector.server_url">
|
<JFXTextField fx:id="txtServerUrl" promptText="%account.injector.server_url" onAction="#onAddNext">
|
||||||
<validators>
|
<validators>
|
||||||
<URLValidator message="%input.url">
|
<URLValidator message="%input.url">
|
||||||
<protocols>
|
<protocols>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user