From e1a5a23e9cbb4391a9a75d3d0b8324ca452eb657 Mon Sep 17 00:00:00 2001 From: pointfeev Date: Tue, 8 Mar 2022 22:59:22 -0500 Subject: [PATCH] v3.2.2.4 - Fixed harmless update form cancel button exception - Main form tree view will now stay scrolled to the top while being populated --- CreamInstaller/CreamInstaller.csproj | 2 +- CreamInstaller/MainForm.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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; } }