v2.2.1.1
- Fixed update log showing the version twice
This commit is contained in:
parent
b3526c7fbf
commit
70f009abb5
3 changed files with 5 additions and 5 deletions
|
@ -5,7 +5,7 @@
|
||||||
<UseWindowsForms>true</UseWindowsForms>
|
<UseWindowsForms>true</UseWindowsForms>
|
||||||
<ApplicationIcon>Resources\ini.ico</ApplicationIcon>
|
<ApplicationIcon>Resources\ini.ico</ApplicationIcon>
|
||||||
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
|
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
|
||||||
<Version>2.2.1.0</Version>
|
<Version>2.2.1.1</Version>
|
||||||
<PackageIcon>Resources\ini.ico</PackageIcon>
|
<PackageIcon>Resources\ini.ico</PackageIcon>
|
||||||
<PackageIconUrl />
|
<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>
|
<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>
|
||||||
|
|
|
@ -40,7 +40,7 @@ namespace CreamInstaller
|
||||||
Font subFont = new(font.FontFamily, font.SizeInPoints, FontStyle.Regular, font.Unit, font.GdiCharSet, font.GdiVerticalFont);
|
Font subFont = new(font.FontFamily, font.SizeInPoints, FontStyle.Regular, font.Unit, font.GdiCharSet, font.GdiVerticalFont);
|
||||||
|
|
||||||
string subText = node.Name;
|
string subText = node.Name;
|
||||||
if (subText is null || subText == "0")
|
if (subText is null || !int.TryParse(subText, out int subInt) || subInt <= 0)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -97,9 +97,9 @@ namespace CreamInstaller
|
||||||
if (version > currentVersion && !changelogTreeView.Nodes.ContainsKey(version.ToString()))
|
if (version > currentVersion && !changelogTreeView.Nodes.ContainsKey(version.ToString()))
|
||||||
{
|
{
|
||||||
TreeNode root = new($"v{version}");
|
TreeNode root = new($"v{version}");
|
||||||
root.Name = version.ToString();
|
root.Name = root.Text;
|
||||||
changelogTreeView.Nodes.Add(root);
|
changelogTreeView.Nodes.Add(root);
|
||||||
new Task(async () =>
|
_ = Task.Run(async () =>
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -126,7 +126,7 @@ namespace CreamInstaller
|
||||||
{
|
{
|
||||||
changelogTreeView.Nodes.Remove(root);
|
changelogTreeView.Nodes.Remove(root);
|
||||||
}
|
}
|
||||||
}).Start();
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue