mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-01-12 16:29:05 +01:00
Single instances fix
This commit is contained in:
parent
b4a6249fa3
commit
631172c456
@ -106,14 +106,13 @@ namespace DS4Windows
|
|||||||
private delegate void SetFormVisableDelegate(Form frm);
|
private delegate void SetFormVisableDelegate(Form frm);
|
||||||
static private void ThreadFormVisable(Form frm)
|
static private void ThreadFormVisable(Form frm)
|
||||||
{
|
{
|
||||||
if (frm != null && frm is DS4Form)
|
if (frm != null)
|
||||||
{
|
{
|
||||||
if (frm is DS4Form)
|
if (frm is DS4Form)
|
||||||
{
|
{
|
||||||
// display the form and bring to foreground.
|
// display the form and bring to foreground.
|
||||||
frm.Visible = true;
|
|
||||||
frm.WindowState = FormWindowState.Normal;
|
frm.WindowState = FormWindowState.Normal;
|
||||||
frm.Show();
|
frm.Focus();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -89,9 +89,9 @@ namespace DS4Windows
|
|||||||
|
|
||||||
public void ShowMainWindow()
|
public void ShowMainWindow()
|
||||||
{
|
{
|
||||||
form.Visible = true;
|
|
||||||
form.WindowState = FormWindowState.Normal;
|
|
||||||
form.Show();
|
form.Show();
|
||||||
|
form.WindowState = FormWindowState.Normal;
|
||||||
|
form.Focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void LoadP()
|
public void LoadP()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user