소스 검색

Prevents throwing if MainLoop is null.

BDisp 1 년 전
부모
커밋
feed69d53f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Terminal.Gui/Application.MainLoopSyncContext.cs

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

@@ -12,7 +12,7 @@ public static partial class Application
 
         public override void Post (SendOrPostCallback d, object state)
         {
-            MainLoop.AddIdle (
+            MainLoop?.AddIdle (
                               () =>
                               {
                                   d (state);