Revert "Fix minimize to taskbar option"

This reverts commit b9af99295b.
This commit is contained in:
Travis Nickles 2018-07-22 01:21:23 -05:00
parent b9af99295b
commit ffa3eb08ab

View File

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