Merge pull request #138 from agustinmorantes/HideWindow

Hide window instead of showing as tool window on desktop (thanks agustinmorantes)
This commit is contained in:
David Khachaturov 2019-04-20 15:02:35 +01:00 committed by GitHub
commit ca85360ffc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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