mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Prevent a crash if there are no views added to the Toplevel
This commit is contained in:
@@ -907,7 +907,7 @@ namespace Terminal.Gui {
|
||||
public void FocusFirst ()
|
||||
{
|
||||
if (subviews == null) {
|
||||
SuperView.SetFocus (this);
|
||||
SuperView?.SetFocus (this);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user