1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Fixed IsPaused calculation

This commit is contained in:
Brian Fiete 2020-01-21 09:06:37 -08:00
parent b068aa8d29
commit db5e5f034a
2 changed files with 7 additions and 10 deletions

View file

@ -9538,7 +9538,7 @@ namespace IDE
{
#if !CLI
DarkDialog dlg = new DarkDialog("Initialize Project?",
scope String("The project does not contain any source code. Do you want to auto-generate some startup code?", mWorkspace.mStartupProject.mProjectName)
scope String()..AppendF("Project '{}' does not contain any source code. Do you want to auto-generate some startup code?", mWorkspace.mStartupProject.mProjectName)
, DarkTheme.sDarkTheme.mIconError);
dlg.mWindowFlags |= .Modal;
dlg.AddYesNoButtons(new (dlg) =>

View file

@ -960,18 +960,15 @@ namespace IDE
if (gApp.mDebugger == null)
return true;
bool checkRunState = (!gApp.mDebugger.HasPendingDebugLoads()) &&
((gApp.mExecutionPaused) || (!gApp.mDebugger.mIsRunning));
if ((!ScriptManager.sActiveManager.mIsBuildScript) && (gApp.AreTestsRunning()))
checkRunState = false;
/*if (gApp.AreTestsRunning())
checkRunState = false;*/
if (!checkRunState)
return true;
if (gApp.mDebugger.HasPendingDebugLoads())
return false;
if ((!gApp.mExecutionPaused) && (gApp.mDebugger.mIsRunning))
return false;
var runState = gApp.mDebugger.GetRunState();
if (runState == .Terminating)
{