Use proper null check pattern

This commit is contained in:
Brandon Thetford
2024-02-21 02:45:23 -07:00
parent cb067ece0a
commit 27fe9eeb7d

View File

@@ -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