From 7df2736fbce0a8aa71d52aa33d554c834a3d791e Mon Sep 17 00:00:00 2001 From: status102 <102887808+status102@users.noreply.github.com> Date: Tue, 21 Apr 2026 10:08:44 +0800 Subject: [PATCH] =?UTF-8?q?chore(wpf):=20=E6=B3=A8=E9=87=8A=E6=8E=A8?= =?UTF-8?q?=E9=94=99=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Configuration/Converter/JsonPredictSerializationModifier.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MaaWpfGui/Configuration/Converter/JsonPredictSerializationModifier.cs b/src/MaaWpfGui/Configuration/Converter/JsonPredictSerializationModifier.cs index 8d6ce4b163..e93f272a72 100644 --- a/src/MaaWpfGui/Configuration/Converter/JsonPredictSerializationModifier.cs +++ b/src/MaaWpfGui/Configuration/Converter/JsonPredictSerializationModifier.cs @@ -70,7 +70,7 @@ public static class JsonPredictSerializationModifier /// 根据 serializeWhenEqual:为 true 时仅当条件值等于 comparedValue 才序列化;为 false 时仅当不等于才序列化。 /// conditionPropertyName 支持点号路径,如 "StagePlan.Count"。 /// 条件值为 null 时:若 comparedValue 也为 null 且 serializeWhenEqual 为 true 则序列化,否则按 comparedValue 与 serializeWhenEqual 决定是否序列化。 - /// comparedValue 为 null 时,按 value 类型推断默认比较值:bool 视为与 false 比较,int 视为与 0 比较(此时语义为“不等于 0 才序列化”); + /// comparedValue 为 null 时,按 value 类型推断默认比较值:bool 视为与 true 比较,int 视为与 0 比较(此时语义为“不等于 0 才序列化”); /// 若 value 为容器(IEnumerable/ICollection),则先将 value 替换为元素个数再按整数与 0 比较;其他类型不设默认比较值,会序列化。 /// private static bool ShouldSerializeByCondition(object? parent, string conditionPropertyName, object? comparedValue, bool serializeWhenEqual = true)