From 41485f4106e5b06d8d3f8cbaebe670b468090b66 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Wed, 29 Jul 2020 05:10:56 -0700 Subject: [PATCH] Waits for execution queue --- IDE/src/ScriptManager.bf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/IDE/src/ScriptManager.bf b/IDE/src/ScriptManager.bf index 5ad7ca16..5407cfbf 100644 --- a/IDE/src/ScriptManager.bf +++ b/IDE/src/ScriptManager.bf @@ -1004,6 +1004,13 @@ namespace IDE if (!gApp.[Friend]mExecutionInstances.IsEmpty) return false; + if (!gApp.[Friend]mExecutionQueue.IsEmpty) + { + var nextCmd = gApp.mExecutionQueue[0]; + if (!(nextCmd is IDEApp.TargetCompletedCmd)) + return false; + } + if (gApp.mDebugger == null) return true;