install keys

This commit is contained in:
Schedel Pascal
2024-06-21 08:55:46 +02:00
parent f1185c242c
commit 20c1e5dc8e
12 changed files with 216 additions and 75 deletions

View File

@@ -8,15 +8,18 @@ public class AppConfig : IChildSettings, ISettingsIdentifier
public static string Identifier => "pilz.appconfig";
public string LastMinecraftProfilePath { get; set; }
public string LastConfigFilePath { get; set; }
public bool LastIncludeExtras { get; set; }
public List<string> KeepLocalFiles { get; } = [];
[JsonIgnore, Obsolete]
public string ConfigFilePath { get; private set; }
[JsonProperty("ConfigFilePath"), Obsolete]
private string ConfigFilePathLegacy
{
set => ConfigFilePath = value;
}
public void Reset()
{
LastMinecraftProfilePath = null;
LastConfigFilePath = null;
KeepLocalFiles.Clear();
}
public static AppConfig Instance => Program.Settings.Get<AppConfig>();