mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-28 16:58:01 +01:00
Fix unit test error not disposing static variables.
This commit is contained in:
@@ -1134,6 +1134,7 @@ namespace Terminal.Gui {
|
||||
_initialized = false;
|
||||
mouseGrabView = null;
|
||||
_enableConsoleScrolling = false;
|
||||
lastMouseOwnerView = null;
|
||||
|
||||
// Reset synchronization context to allow the user to run async/await,
|
||||
// as the main loop has been ended, the synchronization context from
|
||||
|
||||
@@ -984,6 +984,13 @@ namespace Terminal.Gui {
|
||||
{
|
||||
return MostFocused?.OnLeave (view) ?? base.OnLeave (view);
|
||||
}
|
||||
|
||||
///<inheritdoc/>
|
||||
protected override void Dispose (bool disposing)
|
||||
{
|
||||
dragPosition = null;
|
||||
base.Dispose (disposing);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -1163,6 +1163,8 @@ namespace Terminal.Gui.TopLevelTests {
|
||||
│ this. │
|
||||
│ │
|
||||
└────────────────────────────┘", output);
|
||||
|
||||
Application.End (rs);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user