mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-30 17:57:57 +01:00
Verify runstate.Top never equals Top
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user