Fixed issue with app not being restored from launching a second session.

Related to issue #417.
This commit is contained in:
Travis Nickles 2018-11-09 05:23:42 -06:00
parent fb7c731fe5
commit ad530e4d20

View File

@ -157,14 +157,14 @@ namespace DS4Windows
/// </summary>
/// <param name="frm"></param>
private delegate void SetFormVisableDelegate(Form frm);
static private void ThreadFormVisable(Form frm)
private static void ThreadFormVisable(Form frm)
{
if (frm is DS4Form)
{
// display the form and bring to foreground.
frm.WindowState = FormWindowState.Normal;
frm.Focus();
frm.Activate();
DS4Form temp = (DS4Form)frm;
temp.Show();
temp.WindowState = FormWindowState.Normal;
}
}
}