@@ -480,7 +480,7 @@ namespace Terminal.Gui {
// Closes the application if it's true.
if (closeDriver) {
MainLoop = null;
- Driver.End ();
+ Driver?.End ();
Driver = null;
}
@@ -88,8 +88,6 @@ namespace UICatalog {
scenario.Run ();
scenario = GetScenarioToRun ();
- // Now closes the driver too.
- Application.Shutdown ();
/// <summary>