Change minimize behavior
Window now fully hides when minimizing instead of appearing as a tool window on the desktop.
This commit is contained in:
parent
d40778aca5
commit
7bbc62d850
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue