- Fixed harmless update form cancel button exception
- Main form tree view will now stay scrolled to the top while being populated
This commit is contained in:
pointfeev 2022-03-08 22:59:22 -05:00
parent 47c99e5e89
commit e1a5a23e9c
2 changed files with 3 additions and 2 deletions

View file

@ -5,7 +5,7 @@
<UseWindowsForms>True</UseWindowsForms>
<ApplicationIcon>Resources\ini.ico</ApplicationIcon>
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
<Version>3.2.2.3</Version>
<Version>3.2.2.4</Version>
<PackageIcon>Resources\ini.ico</PackageIcon>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<Copyright>2021, pointfeev (https://github.com/pointfeev)</Copyright>

View file

@ -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;
}
}