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
This commit is contained in:
parent
47c99e5e89
commit
e1a5a23e9c
2 changed files with 3 additions and 2 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>3.2.2.3</Version>
|
<Version>3.2.2.4</Version>
|
||||||
<PackageIcon>Resources\ini.ico</PackageIcon>
|
<PackageIcon>Resources\ini.ico</PackageIcon>
|
||||||
<PackageLicenseFile>LICENSE</PackageLicenseFile>
|
<PackageLicenseFile>LICENSE</PackageLicenseFile>
|
||||||
<Copyright>2021, pointfeev (https://github.com/pointfeev)</Copyright>
|
<Copyright>2021, pointfeev (https://github.com/pointfeev)</Copyright>
|
||||||
|
|
|
@ -99,6 +99,7 @@ internal partial class MainForm : CustomForm
|
||||||
TreeNode root = new($"v{version}");
|
TreeNode root = new($"v{version}");
|
||||||
root.Name = root.Text;
|
root.Name = root.Text;
|
||||||
changelogTreeView.Nodes.Add(root);
|
changelogTreeView.Nodes.Add(root);
|
||||||
|
if (changelogTreeView.Nodes.Count > 0) changelogTreeView.Nodes[0].EnsureVisible();
|
||||||
_ = Task.Run(async () =>
|
_ = Task.Run(async () =>
|
||||||
{
|
{
|
||||||
HtmlNodeCollection nodes = await HttpClientManager.GetDocumentNodes(
|
HtmlNodeCollection nodes = await HttpClientManager.GetDocumentNodes(
|
||||||
|
@ -113,11 +114,11 @@ internal partial class MainForm : CustomForm
|
||||||
change.Text = HttpUtility.HtmlDecode(node.InnerText);
|
change.Text = HttpUtility.HtmlDecode(node.InnerText);
|
||||||
root.Nodes.Add(change);
|
root.Nodes.Add(change);
|
||||||
root.Expand();
|
root.Expand();
|
||||||
|
if (changelogTreeView.Nodes.Count > 0) changelogTreeView.Nodes[0].EnsureVisible();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
versions = null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue