소스 검색

Merge pull request #603 from tig/application_shutdown_crash

Fixes UI Catalog shutdown crash
Charlie Kindel 5 년 전
부모
커밋
fae3285371
2개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  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>