Correct negation is ISC

This commit is contained in:
Yoshi Askharoun
2025-07-21 02:02:32 -05:00
parent 2e8f22b963
commit 27b248c704
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -405,6 +405,12 @@ partial class Decompiler
private static ExpressionSyntax LogicalNotOf(ExpressionSyntax originalExpression)
{
if (originalExpression is IsPatternExpressionSyntax isPatternExpression)
{
var baseTypePattern = isPatternExpression.Pattern;
return isPatternExpression.WithPattern(UnaryPattern(baseTypePattern));
}
if (originalExpression is not BinaryExpressionSyntax binaryExpression)
goto defaultCase;
+1 -1
View File
@@ -826,7 +826,7 @@
<Script>string GetDefaultFrameBackground()
{
source = null;
if (!zuneUI:ZuneShell.DefaultInstance.CurrentPage is zuneUI:QuickplayPage)
if (zuneUI:ZuneShell.DefaultInstance.CurrentPage is not zuneUI:QuickplayPage)
{
if (zuneUI:ZuneShell.DefaultInstance.CurrentPage is zuneUI:StartupPage)
{