mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Use proper null check pattern
This commit is contained in:
@@ -1208,7 +1208,7 @@ public static partial class Application
|
||||
|
||||
// The Current and the top are both not running Toplevel then
|
||||
// the top must be moved above the first not running Toplevel.
|
||||
if (OverlappedTop != null
|
||||
if (OverlappedTop is { }
|
||||
&& top != OverlappedTop
|
||||
&& top != Current
|
||||
&& Current?.Running == false
|
||||
|
||||
Reference in New Issue
Block a user