浏览代码

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);