mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-01-12 08:19:13 +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);
|
||||
static private void ThreadFormVisable(Form frm)
|
||||
{
|
||||
if (frm != null && frm is DS4Form)
|
||||
if (frm != null)
|
||||
{
|
||||
if (frm is DS4Form)
|
||||
{
|
||||
// display the form and bring to foreground.
|
||||
frm.Visible = true;
|
||||
frm.WindowState = FormWindowState.Normal;
|
||||
frm.Show();
|
||||
frm.Focus();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -89,9 +89,9 @@ namespace DS4Windows
|
||||
|
||||
public void ShowMainWindow()
|
||||
{
|
||||
form.Visible = true;
|
||||
form.WindowState = FormWindowState.Normal;
|
||||
form.Show();
|
||||
form.WindowState = FormWindowState.Normal;
|
||||
form.Focus();
|
||||
}
|
||||
|
||||
public void LoadP()
|
||||
|
Loading…
x
Reference in New Issue
Block a user