Rewrite settings handling to load on startup

Now uses json to store, manually editable

Closes #644
This commit is contained in:
Kurt
2026-01-27 19:27:18 -06:00
parent 0e26ad7099
commit a6d21f515f
11 changed files with 211 additions and 274 deletions

View File

@@ -1,22 +1,18 @@
using System.Windows.Forms;
using NHSE.WinForms.Properties;
namespace NHSE.WinForms;
public partial class SettingsEditor : Form
{
private readonly Settings obj;
public SettingsEditor()
{
obj = Settings.Default;
InitializeComponent();
PG_Settings.SelectedObject = obj;
PG_Settings.SelectedObject = Program.Settings;
}
private void SettingsEditor_FormClosing(object sender, FormClosingEventArgs e)
{
obj.Save();
// Settings are saved when Main form closes
}
private void SettingsEditor_KeyDown(object sender, KeyEventArgs e)