Skip to content

Commit

Permalink
Made issues inside version details clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
daredloco committed Dec 10, 2020
1 parent d55aa9c commit aeb994a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions GitInstaller/GitInstaller/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,13 @@ internal void UpdateChanges(Installer.GitRelease release)
hyperlink.RequestNavigate += HyperlinkPressedInChanges;
para.Inlines.Add(hyperlink);
}
else if(newword.StartsWith("#") && int.TryParse(newword.Replace("#", ""), out int n))
{
string url = $"https://github.com/{Settings.User}/{Settings.Repo}/issues/{newword.Replace("#","")}";
Hyperlink hyperlink = new Hyperlink(new Run(newword)) { NavigateUri = new Uri(url), IsEnabled = true };
hyperlink.RequestNavigate += HyperlinkPressedInChanges;
para.Inlines.Add(hyperlink);
}
else
{
//Get Links and Images
Expand Down
4 changes: 2 additions & 2 deletions GitInstaller/GitInstaller/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// indem Sie "*" wie unten gezeigt eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.8.3.0")]
[assembly: AssemblyFileVersion("1.8.3.0")]
[assembly: AssemblyVersion("1.8.4.0")]
[assembly: AssemblyFileVersion("1.8.4.0")]

0 comments on commit aeb994a

Please sign in to comment.