From b9af99295be70cf6ae9492ba3bfa3768fb4731f9 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Sat, 21 Jul 2018 15:26:37 -0500 Subject: [PATCH] Fix minimize to taskbar option --- DS4Windows/DS4Forms/DS4Form.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/DS4Windows/DS4Forms/DS4Form.cs b/DS4Windows/DS4Forms/DS4Form.cs index f01d2c8..c3cbf0d 100644 --- a/DS4Windows/DS4Forms/DS4Form.cs +++ b/DS4Windows/DS4Forms/DS4Form.cs @@ -898,16 +898,14 @@ 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;