mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-01-12 14:14:52 +08:00
close #1917
This commit is contained in:
parent
825df1981d
commit
13968fe3aa
@ -43,6 +43,7 @@ import org.jackhuang.hmcl.ui.decorator.DecoratorPage;
|
||||
import org.jackhuang.hmcl.util.Lang;
|
||||
import org.jackhuang.hmcl.util.Pair;
|
||||
import org.jackhuang.hmcl.util.javafx.BindingMapping;
|
||||
import org.jackhuang.hmcl.util.javafx.SafeStringConverter;
|
||||
import org.jackhuang.hmcl.util.platform.Architecture;
|
||||
import org.jackhuang.hmcl.util.platform.JavaVersion;
|
||||
import org.jackhuang.hmcl.util.platform.OperatingSystem;
|
||||
@ -256,7 +257,7 @@ public final class VersionSettingsPage extends StackPane implements DecoratorPag
|
||||
JFXTextField txtMaxMemory = new JFXTextField();
|
||||
FXUtils.setLimitWidth(txtMaxMemory, 60);
|
||||
FXUtils.setValidateWhileTextChanged(txtMaxMemory, true);
|
||||
FXUtils.bindInt(txtMaxMemory, maxMemory);
|
||||
txtMaxMemory.textProperty().bindBidirectional(maxMemory, SafeStringConverter.fromInteger());
|
||||
txtMaxMemory.setValidators(new NumberValidator(i18n("input.number"), false));
|
||||
|
||||
lowerBoundPane.getChildren().setAll(label, slider, txtMaxMemory, new Label("MB"));
|
||||
|
Loading…
Reference in New Issue
Block a user