Browse Source

fixes crashing bug on exit

Charlie Kindel 5 years ago
parent
commit
857bdcbe24
2 changed files with 1 additions and 3 deletions
  1. 1 1
      Terminal.Gui/Core/Application.cs
  2. 0 2
      UICatalog/UICatalog.cs

+ 1 - 1
Terminal.Gui/Core/Application.cs

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

+ 0 - 2
UICatalog/UICatalog.cs

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