fixed notify icon bug
This commit is contained in:
parent
5818104335
commit
ece2a122dd
1
OWTrack/MainForm.Designer.cs
generated
1
OWTrack/MainForm.Designer.cs
generated
@ -322,6 +322,7 @@
|
||||
this.Name = "MainForm";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "OWTrack";
|
||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing);
|
||||
this.SettingsGroup.ResumeLayout(false);
|
||||
this.SettingsGroup.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
@ -242,6 +242,12 @@ namespace OWTrack
|
||||
tr.gamePath = getGamePath();
|
||||
update();
|
||||
}
|
||||
|
||||
private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
notifyIcon1.Icon = null;
|
||||
notifyIcon1.Dispose();
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user