From 6f8002a0cf00352ea73b8f59333f681b6da3aebd Mon Sep 17 00:00:00 2001 From: Glavo Date: Wed, 19 Feb 2025 15:34:08 +0800 Subject: [PATCH] Fix typo in FXUtils (#3631) --- HMCL/src/main/java/org/jackhuang/hmcl/ui/FXUtils.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/FXUtils.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/FXUtils.java index cf04ce7bd..f32ebf865 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/FXUtils.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/FXUtils.java @@ -584,7 +584,7 @@ public final class FXUtils { focusedListener = (observable, oldFocused, newFocused) -> { if (oldFocused && !newFocused) { if (textField.validate()) { - uppdateProperty(); + updateProperty(); } else { // Rollback to old value updateTextField(); @@ -596,7 +596,7 @@ public final class FXUtils { if (oldScene != null && newScene == null) { // Component is being removed from scene if (textField.validate()) { - uppdateProperty(); + updateProperty(); } } }; @@ -606,7 +606,7 @@ public final class FXUtils { }; } - public void uppdateProperty() { + public void updateProperty() { String newText = textField.getText(); @SuppressWarnings("unchecked") T newValue = converter == null ? (T) newText : converter.fromString(newText);