Invert bool for minimize to taskbar

This commit is contained in:
Travis Nickles 2018-08-09 19:50:26 -05:00
parent 2ef5b1e5a7
commit b1cea0725c

View File

@ -926,14 +926,14 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
protected void Form_Resize(object sender, EventArgs e)
{
bool minToTask = GetMinToTaskbar();
if (FormWindowState.Minimized == WindowState && minToTask)
if (FormWindowState.Minimized == WindowState && !minToTask)
{
Hide();
ShowInTaskbar = false;
FormBorderStyle = FormBorderStyle.None;
}
else if (FormWindowState.Normal == WindowState && minToTask)
else if (FormWindowState.Normal == WindowState && !minToTask)
{
//mAllowVisible = true;
Show();