mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-23 01:39:17 +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; }
|
||||
}
|
||||
|
||||
public static bool GetMinToTaskbar()
|
||||
{
|
||||
return m_Config.minToTaskbar;
|
||||
}
|
||||
|
||||
public static int FormWidth
|
||||
{
|
||||
set { m_Config.formWidth = value; }
|
||||
|
@ -898,14 +898,15 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
|
||||
|
||||
protected void Form_Resize(object sender, EventArgs e)
|
||||
{
|
||||
if (FormWindowState.Minimized == WindowState && !MinToTaskbar)
|
||||
bool minToTask = GetMinToTaskbar();
|
||||
if (FormWindowState.Minimized == WindowState && minToTask)
|
||||
{
|
||||
Hide();
|
||||
ShowInTaskbar = false;
|
||||
FormBorderStyle = FormBorderStyle.None;
|
||||
}
|
||||
|
||||
else if (FormWindowState.Normal == WindowState && !MinToTaskbar)
|
||||
else if (FormWindowState.Normal == WindowState && minToTask)
|
||||
{
|
||||
//mAllowVisible = true;
|
||||
Show();
|
||||
|
Loading…
Reference in New Issue
Block a user