mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-29 20:44:20 +01:00
Fixed issue with app not being restored from launching a second session.
Related to issue #417.
This commit is contained in:
parent
fb7c731fe5
commit
ad530e4d20
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user