mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-23 09:49:16 +01:00
Added alt min to taskbar fix
This commit is contained in:
parent
d1f124870f
commit
3fa9d2f2b5
@ -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; }
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user