This commit is contained in:
kirillsaint 2023-07-25 19:34:45 +06:00
parent 1543317306
commit b4f0c4f42c
2 changed files with 8 additions and 1 deletions

View File

@ -208,7 +208,10 @@ public class Client {
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();
in.close();
} catch (Exception err) {

View File

@ -41,6 +41,10 @@ public class GlobalSettings {
return displayedTutorial;
}
public void setConfigsMigrated(boolean configsMigrated) {
this.configsMigrated = configsMigrated;
}
public void save() {
try {
FileOutputStream outputStream = new FileOutputStream(Client.getInstance().getGlobalSettingsFile());