From 842c61a3b133018b4fc0eb906be471b74cf085b0 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 30 Jan 2024 17:51:47 +0800 Subject: [PATCH] fix remove css for error tree --- src/Builder4/WindowLeftProps.bjs | 6 +++--- src/Builder4/WindowLeftProps.vala | 6 +++--- src/Builder4/WindowLeftTree.bjs | 6 +++--- src/Builder4/WindowLeftTree.vala | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/Builder4/WindowLeftProps.bjs b/src/Builder4/WindowLeftProps.bjs index 8d82cc8ee..90cd32381 100644 --- a/src/Builder4/WindowLeftProps.bjs +++ b/src/Builder4/WindowLeftProps.bjs @@ -1475,14 +1475,14 @@ "\t\t\t ", "\t }", "\t ", - "\t \tif (!child.has_css_class(\"node-err\")) {", + "\t \tif (child.has_css_class(\"node-err\")) {", "\t\t\tchild.remove_css_class(\"node-err\");", "\t\t}", - "\t\tif (!child.has_css_class(\"node-warn\")) {", + "\t\tif (child.has_css_class(\"node-warn\")) {", "\t\t\tchild.remove_css_class(\"node-warn\");", "\t\t}", "\t\t", - "\t\tif (!child.has_css_class(\"node-depr\")) {", + "\t\tif (child.has_css_class(\"node-depr\")) {", "\t\t\tchild.remove_css_class(\"node-depr\");", "\t\t}", "\t\t", diff --git a/src/Builder4/WindowLeftProps.vala b/src/Builder4/WindowLeftProps.vala index b53de34d9..8e1dc03f9 100644 --- a/src/Builder4/WindowLeftProps.vala +++ b/src/Builder4/WindowLeftProps.vala @@ -261,14 +261,14 @@ public class Xcls_LeftProps : Object } - if (!child.has_css_class("node-err")) { + if (child.has_css_class("node-err")) { child.remove_css_class("node-err"); } - if (!child.has_css_class("node-warn")) { + if (child.has_css_class("node-warn")) { child.remove_css_class("node-warn"); } - if (!child.has_css_class("node-depr")) { + if (child.has_css_class("node-depr")) { child.remove_css_class("node-depr"); } diff --git a/src/Builder4/WindowLeftTree.bjs b/src/Builder4/WindowLeftTree.bjs index fad8976de..27a5f8ed6 100644 --- a/src/Builder4/WindowLeftTree.bjs +++ b/src/Builder4/WindowLeftTree.bjs @@ -1701,14 +1701,14 @@ "\t\t\t ", "\t }", "\t ", - "\t \tif (!child.has_css_class(\"node-err\")) {", + "\t \tif (child.has_css_class(\"node-err\")) {", "\t\t\tchild.remove_css_class(\"node-err\");", "\t\t}", - "\t\tif (!child.has_css_class(\"node-warn\")) {", + "\t\tif (child.has_css_class(\"node-warn\")) {", "\t\t\tchild.remove_css_class(\"node-warn\");", "\t\t}", "\t\t", - "\t\tif (!child.has_css_class(\"node-depr\")) {", + "\t\tif (child.has_css_class(\"node-depr\")) {", "\t\t\tchild.remove_css_class(\"node-depr\");", "\t\t}", "\t\t", diff --git a/src/Builder4/WindowLeftTree.vala b/src/Builder4/WindowLeftTree.vala index 6c61cf504..dfc25baa6 100644 --- a/src/Builder4/WindowLeftTree.vala +++ b/src/Builder4/WindowLeftTree.vala @@ -128,14 +128,14 @@ public class Xcls_WindowLeftTree : Object } - if (!child.has_css_class("node-err")) { + if (child.has_css_class("node-err")) { child.remove_css_class("node-err"); } - if (!child.has_css_class("node-warn")) { + if (child.has_css_class("node-warn")) { child.remove_css_class("node-warn"); } - if (!child.has_css_class("node-depr")) { + if (child.has_css_class("node-depr")) { child.remove_css_class("node-depr"); } -- 2.39.2