mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-13 05:46:59 -04:00
Remove VersionSetting.global property as it's unused
This commit is contained in:
parent
d5408c38b3
commit
e63ee49eaa
@ -251,7 +251,6 @@ public class HMCLGameRepository extends DefaultGameRepository {
|
|||||||
public VersionSetting getVersionSetting(String id) {
|
public VersionSetting getVersionSetting(String id) {
|
||||||
VersionSetting vs = getLocalVersionSetting(id);
|
VersionSetting vs = getLocalVersionSetting(id);
|
||||||
if (vs == null || vs.isUsesGlobal()) {
|
if (vs == null || vs.isUsesGlobal()) {
|
||||||
profile.getGlobal().setGlobal(true); // always keep global.isGlobal = true
|
|
||||||
profile.getGlobal().setUsesGlobal(true);
|
profile.getGlobal().setUsesGlobal(true);
|
||||||
return profile.getGlobal();
|
return profile.getGlobal();
|
||||||
} else
|
} else
|
||||||
|
@ -44,16 +44,6 @@ import static org.jackhuang.hmcl.util.logging.Logger.LOG;
|
|||||||
@JsonAdapter(VersionSetting.Serializer.class)
|
@JsonAdapter(VersionSetting.Serializer.class)
|
||||||
public final class VersionSetting implements Cloneable {
|
public final class VersionSetting implements Cloneable {
|
||||||
|
|
||||||
private boolean global = false;
|
|
||||||
|
|
||||||
public boolean isGlobal() {
|
|
||||||
return global;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setGlobal(boolean global) {
|
|
||||||
this.global = global;
|
|
||||||
}
|
|
||||||
|
|
||||||
private final BooleanProperty usesGlobalProperty = new SimpleBooleanProperty(this, "usesGlobal", true);
|
private final BooleanProperty usesGlobalProperty = new SimpleBooleanProperty(this, "usesGlobal", true);
|
||||||
|
|
||||||
public BooleanProperty usesGlobalProperty() {
|
public BooleanProperty usesGlobalProperty() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user