mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-02-18 08:56:20 +01:00
Revert "Fix minimize to taskbar option"
This reverts commit b9af99295be70cf6ae9492ba3bfa3768fb4731f9.
This commit is contained in:
parent
b9af99295b
commit
ffa3eb08ab
@ -898,14 +898,16 @@ 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)
|
if (FormWindowState.Minimized == WindowState && !MinToTaskbar)
|
||||||
{
|
{
|
||||||
Hide();
|
Hide();
|
||||||
ShowInTaskbar = false;
|
ShowInTaskbar = false;
|
||||||
FormBorderStyle = FormBorderStyle.None;
|
FormBorderStyle = FormBorderStyle.None;
|
||||||
}
|
}
|
||||||
else if (FormWindowState.Normal == WindowState && MinToTaskbar)
|
|
||||||
|
else if (FormWindowState.Normal == WindowState && !MinToTaskbar)
|
||||||
{
|
{
|
||||||
|
//mAllowVisible = true;
|
||||||
Show();
|
Show();
|
||||||
ShowInTaskbar = true;
|
ShowInTaskbar = true;
|
||||||
FormBorderStyle = FormBorderStyle.Sizable;
|
FormBorderStyle = FormBorderStyle.Sizable;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user