mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Fixed IsPaused calculation
This commit is contained in:
parent
b068aa8d29
commit
db5e5f034a
2 changed files with 7 additions and 10 deletions
|
@ -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) =>
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue