Fixed a major fail. Launching updater has been fixed.

Didn't even grab the dialog result. Related to issue #895
This commit is contained in:
Travis Nickles 2019-11-18 01:30:20 -06:00
parent b5022b593d
commit 21181b1418

View File

@ -974,7 +974,7 @@ namespace DS4Windows.Forms
DialogResult result = DialogResult.No;
this.Invoke((System.Action)(() =>
{
MessageBox.Show(Properties.Resources.DownloadVersion.Replace("*number*", newversion),
result = MessageBox.Show(Properties.Resources.DownloadVersion.Replace("*number*", newversion),
Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question);
}));
@ -1013,8 +1013,11 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
}
if (launchUpdate)
{
this.BeginInvoke((System.Action)(() =>
{
Close();
}));
}
}
else
@ -2383,7 +2386,7 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
DialogResult result = DialogResult.No;
this.Invoke((System.Action)(() =>
{
MessageBox.Show(Properties.Resources.DownloadVersion.Replace("*number*", newversion2),
result = MessageBox.Show(Properties.Resources.DownloadVersion.Replace("*number*", newversion2),
Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question);
}));
@ -2420,8 +2423,11 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
}
if (launchUpdate)
{
this.BeginInvoke((System.Action)(() =>
{
Close();
}));
}
}
else