mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 07:51:32 +01:00
fixes
This commit is contained in:
parent
1543317306
commit
b4f0c4f42c
@ -208,7 +208,10 @@ public class Client {
|
|||||||
content.append(inputLine);
|
content.append(inputLine);
|
||||||
}
|
}
|
||||||
|
|
||||||
globalSettings = gson.fromJson(content.toString(), GlobalSettings.class);
|
globalSettings.setConfig(new JSONObject(content.toString()).getString("config"));
|
||||||
|
globalSettings.setLite(new JSONObject(content.toString()).getBoolean("lite"));
|
||||||
|
globalSettings.setDisplayedTutorial(new JSONObject(content.toString()).getBoolean("displayedTutorial"));
|
||||||
|
globalSettings.setConfigsMigrated(new JSONObject(content.toString()).getBoolean("configsMigrated"));
|
||||||
Client.getInstance().updateWindowTitle();
|
Client.getInstance().updateWindowTitle();
|
||||||
in.close();
|
in.close();
|
||||||
} catch (Exception err) {
|
} catch (Exception err) {
|
||||||
|
@ -41,6 +41,10 @@ public class GlobalSettings {
|
|||||||
return displayedTutorial;
|
return displayedTutorial;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setConfigsMigrated(boolean configsMigrated) {
|
||||||
|
this.configsMigrated = configsMigrated;
|
||||||
|
}
|
||||||
|
|
||||||
public void save() {
|
public void save() {
|
||||||
try {
|
try {
|
||||||
FileOutputStream outputStream = new FileOutputStream(Client.getInstance().getGlobalSettingsFile());
|
FileOutputStream outputStream = new FileOutputStream(Client.getInstance().getGlobalSettingsFile());
|
||||||
|
Loading…
Reference in New Issue
Block a user