fix: 错误的类型转换

fix #5940
This commit is contained in:
uye
2023-08-13 22:44:27 +08:00
parent 13822618b4
commit 8079ca2bf6

View File

@@ -2264,10 +2264,10 @@ namespace MaaWpfGui.ViewModels.UI
if (root != null && _customInfrastInfoOutput && root.TryGetValue("title", out var title))
{
AddLog(LocalizationHelper.GetString("CustomInfrastTitle"), UiLogColor.Message);
AddLog($"title: {JsonConvert.ToString(title)}", UiLogColor.Info);
AddLog($"title: {title ?? "null"}", UiLogColor.Info);
if (root.TryGetValue("description", out var value))
{
AddLog($"description: {JsonConvert.ToString(value)}", UiLogColor.Info);
AddLog($"description: {value ?? "null"}", UiLogColor.Info);
}
}