diff --git a/CreamInstaller/CreamInstaller.csproj b/CreamInstaller/CreamInstaller.csproj index cac3dc1..b7796ba 100644 --- a/CreamInstaller/CreamInstaller.csproj +++ b/CreamInstaller/CreamInstaller.csproj @@ -5,7 +5,7 @@ True Resources\ini.ico true - 3.2.2.3 + 3.2.2.4 Resources\ini.ico LICENSE 2021, pointfeev (https://github.com/pointfeev) diff --git a/CreamInstaller/MainForm.cs b/CreamInstaller/MainForm.cs index fd63cd0..e0f5864 100644 --- a/CreamInstaller/MainForm.cs +++ b/CreamInstaller/MainForm.cs @@ -99,6 +99,7 @@ internal partial class MainForm : CustomForm TreeNode root = new($"v{version}"); root.Name = root.Text; changelogTreeView.Nodes.Add(root); + if (changelogTreeView.Nodes.Count > 0) changelogTreeView.Nodes[0].EnsureVisible(); _ = Task.Run(async () => { HtmlNodeCollection nodes = await HttpClientManager.GetDocumentNodes( @@ -113,11 +114,11 @@ internal partial class MainForm : CustomForm change.Text = HttpUtility.HtmlDecode(node.InnerText); root.Nodes.Add(change); root.Expand(); + if (changelogTreeView.Nodes.Count > 0) changelogTreeView.Nodes[0].EnsureVisible(); }); } }); } - versions = null; } }