From 3e89d81f316755d055fca6ccb17d946643223868 Mon Sep 17 00:00:00 2001 From: supertick Date: Sun, 28 Apr 2024 08:27:43 -0700 Subject: [PATCH] guard to prevent InMoov2.py from executing until ready for release --- src/main/java/org/myrobotlab/service/InMoov2.java | 4 +++- .../java/org/myrobotlab/service/config/InMoov2Config.java | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/myrobotlab/service/InMoov2.java b/src/main/java/org/myrobotlab/service/InMoov2.java index 75b80e6964..d91636e406 100644 --- a/src/main/java/org/myrobotlab/service/InMoov2.java +++ b/src/main/java/org/myrobotlab/service/InMoov2.java @@ -288,7 +288,9 @@ public InMoov2Config apply(InMoov2Config c) { setLocale(getSupportedLocale(Runtime.getInstance().getLocale().toString())); } - execScript(); + if (c.execScript) { + execScript(); + } loadAppsScripts(); diff --git a/src/main/java/org/myrobotlab/service/config/InMoov2Config.java b/src/main/java/org/myrobotlab/service/config/InMoov2Config.java index bf611a1fd2..aa806863f0 100644 --- a/src/main/java/org/myrobotlab/service/config/InMoov2Config.java +++ b/src/main/java/org/myrobotlab/service/config/InMoov2Config.java @@ -153,6 +153,11 @@ public class InMoov2Config extends ServiceConfig { public String unlockInsult = "forgive me"; public boolean virtual = false; + + /** + * Prevent InMoov2.py from executing until ready for release + */ + public boolean execScript = false; public InMoov2Config() { }