fixes crashing bug on exit

This commit is contained in:
Charlie Kindel
2020-06-03 10:18:13 -06:00
parent 1040ec64a4
commit 857bdcbe24
2 changed files with 1 additions and 3 deletions

View File

@@ -480,7 +480,7 @@ namespace Terminal.Gui {
// Closes the application if it's true.
if (closeDriver) {
MainLoop = null;
Driver.End ();
Driver?.End ();
Driver = null;
}

View File

@@ -88,8 +88,6 @@ namespace UICatalog {
scenario.Run ();
scenario = GetScenarioToRun ();
}
// Now closes the driver too.
Application.Shutdown ();
}
/// <summary>