mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-14 14:26:43 -04:00
Fix version setting not saved
This commit is contained in:
parent
dad7ac706f
commit
f7a91bf10c
@ -66,7 +66,7 @@ public final class Profile {
|
|||||||
return globalProperty.get();
|
return globalProperty.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setGlobal(VersionSetting global) {
|
private void setGlobal(VersionSetting global) {
|
||||||
if (global == null)
|
if (global == null)
|
||||||
global = new VersionSetting();
|
global = new VersionSetting();
|
||||||
globalProperty.set(global);
|
globalProperty.set(global);
|
||||||
@ -175,6 +175,7 @@ public final class Profile {
|
|||||||
globalProperty.addListener(listener);
|
globalProperty.addListener(listener);
|
||||||
gameDirProperty.addListener(listener);
|
gameDirProperty.addListener(listener);
|
||||||
useRelativePathProperty.addListener(listener);
|
useRelativePathProperty.addListener(listener);
|
||||||
|
globalProperty.get().addPropertyChangedListener(listener);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final class Serializer implements JsonSerializer<Profile>, JsonDeserializer<Profile> {
|
public static final class Serializer implements JsonSerializer<Profile>, JsonDeserializer<Profile> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user