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> /// </summary>
/// <param name="frm"></param> /// <param name="frm"></param>
private delegate void SetFormVisableDelegate(Form frm); private delegate void SetFormVisableDelegate(Form frm);
static private void ThreadFormVisable(Form frm) private static void ThreadFormVisable(Form frm)
{ {
if (frm is DS4Form) if (frm is DS4Form)
{ {
// display the form and bring to foreground. // display the form and bring to foreground.
frm.WindowState = FormWindowState.Normal; DS4Form temp = (DS4Form)frm;
frm.Focus(); temp.Show();
frm.Activate(); temp.WindowState = FormWindowState.Normal;
} }
} }
} }