From 94e32694b211ac89657b5b9a89238d7d561e0b63 Mon Sep 17 00:00:00 2001 From: Glavo Date: Sun, 12 Dec 2021 16:43:58 +0800 Subject: [PATCH] fix: Game should use global settings by default --- .../main/java/org/jackhuang/hmcl/setting/VersionSetting.java | 2 +- .../org/jackhuang/hmcl/ui/versions/VersionSettingsPage.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/setting/VersionSetting.java b/HMCL/src/main/java/org/jackhuang/hmcl/setting/VersionSetting.java index 0707dc111..f5193a073 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/setting/VersionSetting.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/setting/VersionSetting.java @@ -60,7 +60,7 @@ public final class VersionSetting implements Cloneable { this.global = global; } - private final BooleanProperty usesGlobalProperty = new SimpleBooleanProperty(this, "usesGlobal", false); + private final BooleanProperty usesGlobalProperty = new SimpleBooleanProperty(this, "usesGlobal", true); public BooleanProperty usesGlobalProperty() { return usesGlobalProperty; diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/VersionSettingsPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/VersionSettingsPage.java index 821192289..6c5795b8f 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/VersionSettingsPage.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/VersionSettingsPage.java @@ -112,7 +112,7 @@ public final class VersionSettingsPage extends StackPane implements DecoratorPag private final StringProperty selectedVersion = new SimpleStringProperty(); private final BooleanProperty navigateToSpecificSettings = new SimpleBooleanProperty(false); - private final BooleanProperty enableSpecificSettings = new SimpleBooleanProperty(true); + private final BooleanProperty enableSpecificSettings = new SimpleBooleanProperty(false); private final IntegerProperty maxMemory = new SimpleIntegerProperty(); private final ObjectProperty memoryStatus = new SimpleObjectProperty<>(OperatingSystem.PhysicalMemoryStatus.INVALID); private final BooleanProperty modpack = new SimpleBooleanProperty();