Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Commit

Permalink
Refactoring + replaced XTU link
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackDragonBE committed May 23, 2019
1 parent 7a05a05 commit 0ef6732
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
8 changes: 4 additions & 4 deletions GPDWin2XTUManager/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public partial class MainForm : Form
public MainForm(string[] args = null)
{
InitializeComponent();
CheckForXTU();
CheckForXTUAsync();
StartXTUService();
LoadProfilesIntoList();

Expand Down Expand Up @@ -75,14 +75,14 @@ private async void MainForm_Load(object sender, EventArgs e)
}
}

private void CheckForXTU()
private async void CheckForXTUAsync()
{
if (!File.Exists(Shared.XTU_PATH))
{
if (MessageBox.Show("The Intel Extreme Tuning Utility couldn't be found. Open download page?",
if (MessageBox.Show("The Intel Extreme Tuning Utility couldn't be found. If you did install XTU, read the FAQ on github about the latest version of XTU. Open download page?",
"Unable to find XTU", MessageBoxButtons.YesNo, MessageBoxIcon.Error) == DialogResult.Yes)
{
Process.Start("https://downloadcenter.intel.com/download/24075/Intel-Extreme-Tuning-Utility-Intel-XTU-");
Process.Start("https://github.com/BlackDragonBE/GPDWin2XTUManager/raw/master/XTU_Installer/XTU-Setup-6.4.1.25.exe");
}

Environment.Exit(0);
Expand Down
11 changes: 4 additions & 7 deletions GPDWin2XTUManager/UpdateChecks/UpdateChecker.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using System;
using System.Globalization;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;

namespace GPDWin2XTUManager.UpdateChecks
{
Expand All @@ -21,7 +18,7 @@ public static async Task<GithubRelease> CheckForUpdates()
{
_thisVersion = Shared.VERSION;

GithubRelease newestRelease = await GetNewestReleaseInfo().ConfigureAwait(false);
GithubRelease newestRelease = await GetNewestReleaseInfo().ConfigureAwait(true);

if (newestRelease != null)
{
Expand Down Expand Up @@ -72,4 +69,4 @@ await Task.Run(() =>
return release;
}
}
}
}

0 comments on commit 0ef6732

Please sign in to comment.