Skip to content

Commit

Permalink
Jump out of Run loop when calling InteractiveController.Hide(). This …
Browse files Browse the repository at this point in the history
…is to make sure that the current dialog isn't being shown after it was hidden.
  • Loading branch information
ThomasRemmery committed Jul 15, 2024
1 parent ce58072 commit d2ef29f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion InteractiveAutomationToolkit/InteractiveController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,15 @@ public void Run(Dialog startDialog)
else
{
CurrentDialog = nextDialog;
CurrentDialog.Show();
if (CurrentDialog == null)
{
IsRunning = false;
IsManualMode = false;
}
else
{
CurrentDialog.Show();
}
}
}
catch (Exception)
Expand Down Expand Up @@ -170,6 +178,7 @@ public void Update()
public void Hide()
{
Engine.HideUI();
nextDialog = null;
}

private void RunManualAction()
Expand Down

0 comments on commit d2ef29f

Please # to comment.