From b1cea0725cba5e7f60a9d451ad43b9729d2998c2 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Thu, 9 Aug 2018 19:50:26 -0500 Subject: [PATCH] Invert bool for minimize to taskbar --- DS4Windows/DS4Forms/DS4Form.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DS4Windows/DS4Forms/DS4Form.cs b/DS4Windows/DS4Forms/DS4Form.cs index 9dd4336..e797218 100644 --- a/DS4Windows/DS4Forms/DS4Form.cs +++ b/DS4Windows/DS4Forms/DS4Form.cs @@ -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();