V4.5
This commit is contained in:
8
LDS.cs
8
LDS.cs
@@ -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
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user