This commit is contained in:
2025-11-26 14:39:07 +00:00
parent 791cee91d2
commit e29d104d47
15 changed files with 304 additions and 268 deletions

8
LDS.cs
View File

@@ -17,15 +17,10 @@ namespace AiQ_GUI
try
{
if (!Directory.Exists(MAVPath)) // Check the AiQ folder exists in ProgramData and if it doesn't then create it
{
Directory.CreateDirectory(MAVPath);
}
if (!File.Exists(MAVPath + LDSFileName)) // Check the LDS file exists and if it doesn't then create it
{
// Save a blank version of the JSON
File.WriteAllText(MAVPath + LDSFileName, DefaultJSON);
}
File.WriteAllText(MAVPath + LDSFileName, DefaultJSON); // Save a blank version of the JSON
StreamReader file = new(MAVPath + LDSFileName);
string Content = file.ReadToEnd();
@@ -37,7 +32,6 @@ namespace AiQ_GUI
{
MainForm.Instance.AddToActionsList("Error loading Local Data Store");
return null; // Return null to indicate failure
}
}