Explorar o código

Merge pull request #603 from tig/application_shutdown_crash

Fixes UI Catalog shutdown crash
Charlie Kindel %!s(int64=5) %!d(string=hai) anos
pai
achega
fae3285371
Modificáronse 2 ficheiros con 1 adicións e 3 borrados
  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>