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

View File

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