mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-02-04 10:56:24 +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[] shortcuts;
|
||||||
private ToolStripMenuItem[] disconnectShortcuts;
|
private ToolStripMenuItem[] disconnectShortcuts;
|
||||||
protected CheckBox[] linkedProfileCB;
|
protected CheckBox[] linkedProfileCB;
|
||||||
WebClient wc = new WebClient();
|
|
||||||
NonFormTimer hotkeysTimer = new NonFormTimer();
|
NonFormTimer hotkeysTimer = new NonFormTimer();
|
||||||
NonFormTimer autoProfilesTimer = new NonFormTimer();
|
NonFormTimer autoProfilesTimer = new NonFormTimer();
|
||||||
string tempProfileProgram = string.Empty;
|
string tempProfileProgram = string.Empty;
|
||||||
@ -292,6 +291,7 @@ namespace DS4Windows
|
|||||||
|
|
||||||
if (checkwhen > 0 && DateTime.Now >= LastChecked + TimeSpan.FromHours(checkwhen))
|
if (checkwhen > 0 && DateTime.Now >= LastChecked + TimeSpan.FromHours(checkwhen))
|
||||||
{
|
{
|
||||||
|
WebClient wc = new WebClient();
|
||||||
wc.DownloadFileAsync(url, appdatapath + "\\version.txt");
|
wc.DownloadFileAsync(url, appdatapath + "\\version.txt");
|
||||||
wc.DownloadFileCompleted += (sender, e) => { TaskRunner.Run(() => Check_Version(sender, e)); };
|
wc.DownloadFileCompleted += (sender, e) => { TaskRunner.Run(() => Check_Version(sender, e)); };
|
||||||
LastChecked = DateTime.Now;
|
LastChecked = DateTime.Now;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user