Single instances fix

This commit is contained in:
jays2kings 2014-11-18 17:07:27 -05:00
parent b4a6249fa3
commit 631172c456
2 changed files with 4 additions and 5 deletions

View File

@ -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
{

View File

@ -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()