mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Prevents throw exception if Application.Current is null.
This commit is contained in:
@@ -371,7 +371,7 @@ namespace Terminal.Gui {
|
||||
SuperView?.EnsureFocus ();
|
||||
if (SuperView != null && SuperView.Focused == null) {
|
||||
SuperView.FocusNext ();
|
||||
if (SuperView.Focused == null) {
|
||||
if (SuperView.Focused == null && Application.Current != null) {
|
||||
Application.Current.FocusNext ();
|
||||
}
|
||||
Application.EnsuresTopOnFront ();
|
||||
|
||||
Reference in New Issue
Block a user