mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-30 01:38:01 +01:00
Avoids SetNeedsDisplay on views already removed.
This commit is contained in:
@@ -987,13 +987,13 @@ namespace Terminal.Gui {
|
||||
if (view == null || subviews == null)
|
||||
return;
|
||||
|
||||
SetNeedsLayout ();
|
||||
SetNeedsDisplay ();
|
||||
var touched = view.Frame;
|
||||
subviews.Remove (view);
|
||||
tabIndexes.Remove (view);
|
||||
view.container = null;
|
||||
view.tabIndex = -1;
|
||||
SetNeedsLayout ();
|
||||
SetNeedsDisplay ();
|
||||
if (subviews.Count < 1) {
|
||||
CanFocus = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user