Added alt min to taskbar fix

This commit is contained in:
Travis Nickles 2018-07-22 01:51:58 -05:00
parent d1f124870f
commit 3fa9d2f2b5
2 changed files with 8 additions and 2 deletions

View File

@ -506,6 +506,11 @@ namespace DS4Windows
get { return m_Config.minToTaskbar; } get { return m_Config.minToTaskbar; }
} }
public static bool GetMinToTaskbar()
{
return m_Config.minToTaskbar;
}
public static int FormWidth public static int FormWidth
{ {
set { m_Config.formWidth = value; } set { m_Config.formWidth = value; }

View File

@ -898,14 +898,15 @@ 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) bool minToTask = GetMinToTaskbar();
if (FormWindowState.Minimized == WindowState && minToTask)
{ {
Hide(); Hide();
ShowInTaskbar = false; ShowInTaskbar = false;
FormBorderStyle = FormBorderStyle.None; FormBorderStyle = FormBorderStyle.None;
} }
else if (FormWindowState.Normal == WindowState && !MinToTaskbar) else if (FormWindowState.Normal == WindowState && minToTask)
{ {
//mAllowVisible = true; //mAllowVisible = true;
Show(); Show();