Fix minimize to taskbar option

This commit is contained in:
Travis Nickles 2018-07-21 15:26:37 -05:00
parent be6f938e10
commit b9af99295b

View File

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