添加验证服务器界面回车代表下一步
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user