mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-23 01:39:17 +01:00
Fix minimize to taskbar option
This commit is contained in:
parent
be6f938e10
commit
b9af99295b
@ -898,16 +898,14 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
|
||||
|
||||
protected void Form_Resize(object sender, EventArgs e)
|
||||
{
|
||||
if (FormWindowState.Minimized == WindowState && !MinToTaskbar)
|
||||
if (FormWindowState.Minimized == WindowState && MinToTaskbar)
|
||||
{
|
||||
Hide();
|
||||
ShowInTaskbar = false;
|
||||
FormBorderStyle = FormBorderStyle.None;
|
||||
}
|
||||
|
||||
else if (FormWindowState.Normal == WindowState && !MinToTaskbar)
|
||||
else if (FormWindowState.Normal == WindowState && MinToTaskbar)
|
||||
{
|
||||
//mAllowVisible = true;
|
||||
Show();
|
||||
ShowInTaskbar = true;
|
||||
FormBorderStyle = FormBorderStyle.Sizable;
|
||||
|
Loading…
Reference in New Issue
Block a user