Prevents throwing if MainLoop is null.

This commit is contained in:
BDisp
2024-03-25 21:57:26 +00:00
parent c8b3e15028
commit feed69d53f

View File

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