Change minimize behavior

Window now fully hides when minimizing instead of appearing as a tool window on the desktop.
This commit is contained in:
Agustin Morantes 2019-04-19 00:51:27 -03:00
parent d40778aca5
commit 7bbc62d850

View file

@ -51,11 +51,12 @@ namespace BetterJoyForCemu {
this.WindowState = FormWindowState.Minimized; this.WindowState = FormWindowState.Minimized;
notifyIcon.Visible = true; notifyIcon.Visible = true;
notifyIcon.ShowBalloonTip(1); notifyIcon.ShowBalloonTip(1);
this.FormBorderStyle = FormBorderStyle.FixedToolWindow;
this.ShowInTaskbar = false; this.ShowInTaskbar = false;
this.Hide();
} }
private void ShowFromTray() { private void ShowFromTray() {
this.Show();
this.WindowState = FormWindowState.Normal; this.WindowState = FormWindowState.Normal;
this.ShowInTaskbar = true; this.ShowInTaskbar = true;
this.FormBorderStyle = FormBorderStyle.FixedSingle; this.FormBorderStyle = FormBorderStyle.FixedSingle;