diff --git a/HMCLCore/src/main/java/org/jackhuang/hmcl/util/javafx/ExtendedProperties.java b/HMCLCore/src/main/java/org/jackhuang/hmcl/util/javafx/ExtendedProperties.java index 4998d6eb7..c7b9d59af 100644 --- a/HMCLCore/src/main/java/org/jackhuang/hmcl/util/javafx/ExtendedProperties.java +++ b/HMCLCore/src/main/java/org/jackhuang/hmcl/util/javafx/ExtendedProperties.java @@ -129,7 +129,7 @@ public final class ExtendedProperties { public static ObjectProperty reservedSelectedPropertyFor(CheckBox checkbox) { return (ObjectProperty) checkbox.getProperties().computeIfAbsent( PROP_PREFIX + ".checkbox.reservedSelected", - any -> new MappedProperty<>(checkbox, "ext.reservedSelected", + any -> new MappedProperty(checkbox, "ext.reservedSelected", checkbox.selectedProperty(), it -> !it, it -> !it)); } // ====