Changed options form check after clicking window close button

Related to issue #481.
This commit is contained in:
Travis Nickles 2018-11-13 15:01:57 -06:00
parent 5047dcf31f
commit 928ee3e76c

View File

@ -2137,9 +2137,9 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
}
bool tempBool = false;
protected void ScpForm_Closing(object sender, FormClosingEventArgs e)
private void ScpForm_Closing(object sender, FormClosingEventArgs e)
{
if (opt != null && opt.Visible)
if (optPop)
{
opt.Close();
e.Cancel = true;