- Fixed update log showing the version twice
This commit is contained in:
pointfeev 2022-01-21 16:23:43 -05:00
parent b3526c7fbf
commit 70f009abb5
3 changed files with 5 additions and 5 deletions

View file

@ -5,7 +5,7 @@
<UseWindowsForms>true</UseWindowsForms>
<ApplicationIcon>Resources\ini.ico</ApplicationIcon>
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
<Version>2.2.1.0</Version>
<Version>2.2.1.1</Version>
<PackageIcon>Resources\ini.ico</PackageIcon>
<PackageIconUrl />
<Description>Automatically generates and installs CreamAPI files for Steam games on the user's computer. It can also generate and install CreamAPI for the Paradox Launcher should the user select a Paradox Interactive game.</Description>

View file

@ -40,7 +40,7 @@ namespace CreamInstaller
Font subFont = new(font.FontFamily, font.SizeInPoints, FontStyle.Regular, font.Unit, font.GdiCharSet, font.GdiVerticalFont);
string subText = node.Name;
if (subText is null || subText == "0")
if (subText is null || !int.TryParse(subText, out int subInt) || subInt <= 0)
{
return;
}

View file

@ -97,9 +97,9 @@ namespace CreamInstaller
if (version > currentVersion && !changelogTreeView.Nodes.ContainsKey(version.ToString()))
{
TreeNode root = new($"v{version}");
root.Name = version.ToString();
root.Name = root.Text;
changelogTreeView.Nodes.Add(root);
new Task(async () =>
_ = Task.Run(async () =>
{
try
{
@ -126,7 +126,7 @@ namespace CreamInstaller
{
changelogTreeView.Nodes.Remove(root);
}
}).Start();
});
}
}
}