Merge pull request #2 from Silent-Client/ALPHA2

fixes
This commit is contained in:
kirillsaint 2023-07-25 19:36:33 +06:00 committed by GitHub
commit 714f32c655
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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());