diff --git a/CreamInstaller/CreamInstaller.csproj b/CreamInstaller/CreamInstaller.csproj index 1a3c9db..d34b26f 100644 --- a/CreamInstaller/CreamInstaller.csproj +++ b/CreamInstaller/CreamInstaller.csproj @@ -5,7 +5,7 @@ true Resources\ini.ico true - 2.2.1.0 + 2.2.1.1 Resources\ini.ico 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. diff --git a/CreamInstaller/Forms/Components/CustomTreeView.cs b/CreamInstaller/Forms/Components/CustomTreeView.cs index a5c1ddb..14e2d91 100644 --- a/CreamInstaller/Forms/Components/CustomTreeView.cs +++ b/CreamInstaller/Forms/Components/CustomTreeView.cs @@ -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; } diff --git a/CreamInstaller/Forms/MainForm.cs b/CreamInstaller/Forms/MainForm.cs index 62a152a..cce6a8f 100644 --- a/CreamInstaller/Forms/MainForm.cs +++ b/CreamInstaller/Forms/MainForm.cs @@ -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(); + }); } } }