Skip to content

Commit d187730

Browse files
committed
fix online template name parsing
1 parent 97c040c commit d187730

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

UnityLauncherPro/NewProject.xaml.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -804,15 +804,15 @@ private List<OnlineTemplateItem> ParseTemplatesFromJson(string json)
804804

805805
// Parse individual fields
806806
var tarballUrl = JsonParser.ExtractNestedJsonString(nodeJson, "\"tarball\"", "\"url\"");
807-
var rawDescription = JsonParser.GetStringValue(nodeJson, "\"description\"");
807+
var rawDescription = JsonParser.ExtractJsonString(nodeJson, "\"description\"");
808808
var splitDescription = Tools.SplitTextToRows(rawDescription, 3);
809809

810810
var template = new OnlineTemplateItem
811811
{
812-
Name = JsonParser.GetStringValue(nodeJson, "\"name\""),
812+
Name = JsonParser.ExtractJsonString(nodeJson, "\"name\""),
813813
Description = splitDescription,
814-
Type = JsonParser.GetStringValue(nodeJson, "\"type\""),
815-
RenderPipeline = JsonParser.GetStringValue(nodeJson, "\"renderPipeline\""),
814+
Type = JsonParser.ExtractJsonString(nodeJson, "\"type\""),
815+
RenderPipeline = JsonParser.ExtractJsonString(nodeJson, "\"renderPipeline\""),
816816
PreviewImageURL = JsonParser.ExtractNestedJsonString(nodeJson, "\"previewImage\"", "\"url\"") ?? "pack://application:,,,/Images/icon.png",
817817
TarBallURL = tarballUrl,
818818
IsDownloaded = false

0 commit comments

Comments
 (0)