Commit 04ad4670 authored by superblaubeere27's avatar superblaubeere27

Fixed setting problems

parent 6bd222e7
......@@ -31,7 +31,7 @@ public class Settings {
private final static String MC_VERSION = "minecraftVersion";
private final static String CLIENT_VERSION = "clientVersion";
private final static String KEEP_OPEN = "keepLauncherOpen";
private final static String REMEMBER_ME = "rememberme";
// private final static String REMEMBER_ME = "rememberme";
private final static String ACCOUNT = "account";
private final static String LATEST_VERSION = "latestVersion";
private final static String JVM_PATH = "jvmPath";
......@@ -60,7 +60,6 @@ public class Settings {
jsonObject.addProperty(JVM_ARGS, menuInterface.getJvmArgumentsField().getText());
jsonObject.addProperty(MC_VERSION, (String) menuInterface.getMinecraftVersion().getSelectedItem());
jsonObject.addProperty(CLIENT_VERSION, (String) menuInterface.getClientVersion().getSelectedItem());
jsonObject.addProperty(REMEMBER_ME, menuInterface.getRememberMeCheckBox().isSelected());
jsonObject.addProperty(LATEST_VERSION, menuInterface.getAlwaysLatest().isSelected());
jsonObject.addProperty(JVM_PATH, menuInterface.getJvmPath().getText());
jsonObject.addProperty(FOLDER_ARCH, menuInterface.getFolderArch().getSelectedIndex());
......@@ -214,8 +213,6 @@ public class Settings {
}
menuInterface.getRememberMeCheckBox().setSelected(jsonObject.get(REMEMBER_ME).getAsBoolean());
if (jsonObject.has(ACCOUNT)) {
JsonArray alts = jsonObject.getAsJsonArray(ACCOUNT);
for (JsonElement element :
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment