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