Verify runstate.Top never equals Top

This commit is contained in:
Tig
2024-03-16 08:04:40 -08:00
parent a5b1d6836e
commit 68a07cfddb

View File

@@ -1028,11 +1028,15 @@ public static partial class Application
Refresh ();
}
if (Top == runState.Toplevel)
{
// Top = null;
}
Debug.Assert(Current != runState.Toplevel);
runState.Toplevel?.Dispose ();
runState.Toplevel = null;
runState.Dispose ();
// BUGBUG: Application.Top is now invalid?!?!
}
#endregion Run (Begin, Run, End)