Skip to content

Commit

Permalink
Rearrange a bit for Guido's tips.
Browse files Browse the repository at this point in the history
  • Loading branch information
rappen committed Feb 27, 2022
1 parent 0f5895c commit 4a46235
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions FetchXmlBuilder/Forms/Welcome.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,30 +19,25 @@ public static void ShowWelcome(Control owner, string oldversion = null)
}

var verurl = $"{version.Major}-{version.Minor}-{version.Build}";
var url = $"https://jonasr.app/fxb/releases/{verurl}#content";
url = Utils.ProcessURL(url);

new Welcome(showversion, url).ShowDialog(owner);
}

private Welcome(string version, string releasenotes)
{
InitializeComponent();

lblVersion.Text = version;

var releasenotes = $"https://jonasr.app/fxb/releases/{verurl}#content";
releasenotes = Utils.ProcessURL(releasenotes);
try
{
// Using this to test available of WebView2 - tips by Guido Preite!
CoreWebView2Environment.GetAvailableBrowserVersionString();
webRelease.Source = new Uri(releasenotes);
new Welcome(showversion, releasenotes).ShowDialog(owner);
}
catch
{
FetchXmlBuilder.OpenURL(releasenotes);
}
}

private Welcome(string version, string releasenotes)
{
InitializeComponent();
lblVersion.Text = version;
webRelease.Source = new Uri(releasenotes);
}

private void llTwitter_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
FetchXmlBuilder.OpenURL("http://twitter.com/FetchXMLBuilder");
Expand Down

0 comments on commit 4a46235

Please sign in to comment.