Renamed property to DoNotLoadOnNextBoot for more clarity

This commit is contained in:
Neil Dorin
2019-11-15 16:46:25 -07:00
parent 7fdbf7c3a1
commit b7c7513a18
2 changed files with 7 additions and 7 deletions

View File

@@ -28,7 +28,7 @@ namespace PepperDash.Core
public static int Level { get; private set; }
public static bool DoNotStartOnNextBoot { get; private set; }
public static bool DoNotLoadOnNextBoot { get; private set; }
static DebugContextCollection Contexts;
@@ -86,7 +86,7 @@ namespace PepperDash.Core
var context = Contexts.GetOrCreateItem("DEFAULT");
Level = context.Level;
DoNotStartOnNextBoot = context.DoNotStartOnNextBoot;
DoNotLoadOnNextBoot = context.DoNotLoadOnNextBoot;
try
{
@@ -248,12 +248,12 @@ namespace PepperDash.Core
/// <param name="state"></param>
public static void SetDoNotStartOnNextBoot(bool state)
{
DoNotStartOnNextBoot = state;
Contexts.GetOrCreateItem("DEFAULT").DoNotStartOnNextBoot = state;
DoNotLoadOnNextBoot = state;
Contexts.GetOrCreateItem("DEFAULT").DoNotLoadOnNextBoot = state;
SaveMemoryOnTimeout();
CrestronConsole.PrintLine("[Application {0}], Do Not Start on Next Boot set to {1}",
InitialParametersClass.ApplicationNumber, DoNotStartOnNextBoot);
InitialParametersClass.ApplicationNumber, DoNotLoadOnNextBoot);
}
/// <summary>

View File

@@ -56,8 +56,8 @@ namespace PepperDash.Core.DebugThings
/// <summary>
/// Property to tell the program not to intitialize when it boots, if desired
/// </summary>
[JsonProperty("doNotStartOnNextBoot")]
public bool DoNotStartOnNextBoot { get; set; }
[JsonProperty("doNotLoadOnNextBoot")]
public bool DoNotLoadOnNextBoot { get; set; }
public DebugContextItem(DebugContextCollection parent)