mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-01-11 15:59:08 +01:00
Make WebClient instance local
This commit is contained in:
parent
f6bb47451e
commit
4d5ff945d8
@ -37,7 +37,6 @@ namespace DS4Windows
|
||||
private ToolStripMenuItem[] shortcuts;
|
||||
private ToolStripMenuItem[] disconnectShortcuts;
|
||||
protected CheckBox[] linkedProfileCB;
|
||||
WebClient wc = new WebClient();
|
||||
NonFormTimer hotkeysTimer = new NonFormTimer();
|
||||
NonFormTimer autoProfilesTimer = new NonFormTimer();
|
||||
string tempProfileProgram = string.Empty;
|
||||
@ -292,6 +291,7 @@ namespace DS4Windows
|
||||
|
||||
if (checkwhen > 0 && DateTime.Now >= LastChecked + TimeSpan.FromHours(checkwhen))
|
||||
{
|
||||
WebClient wc = new WebClient();
|
||||
wc.DownloadFileAsync(url, appdatapath + "\\version.txt");
|
||||
wc.DownloadFileCompleted += (sender, e) => { TaskRunner.Run(() => Check_Version(sender, e)); };
|
||||
LastChecked = DateTime.Now;
|
||||
|
Loading…
x
Reference in New Issue
Block a user