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.Name = "MainForm";
|
||||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||||
this.Text = "OWTrack";
|
this.Text = "OWTrack";
|
||||||
|
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing);
|
||||||
this.SettingsGroup.ResumeLayout(false);
|
this.SettingsGroup.ResumeLayout(false);
|
||||||
this.SettingsGroup.PerformLayout();
|
this.SettingsGroup.PerformLayout();
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
|
@ -155,7 +155,7 @@ namespace OWTrack
|
|||||||
else srLabel.Text = tr.startSR.ToString() + " - " + tr.srDiff();
|
else srLabel.Text = tr.startSR.ToString() + " - " + tr.srDiff();
|
||||||
srTextBox.Text = null;
|
srTextBox.Text = null;
|
||||||
saveManeger.SaveJSON(tr);
|
saveManeger.SaveJSON(tr);
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Events
|
#region Events
|
||||||
private void timer1_Tick(object sender, EventArgs e) => checkStatus();
|
private void timer1_Tick(object sender, EventArgs e) => checkStatus();
|
||||||
@ -242,6 +242,12 @@ namespace OWTrack
|
|||||||
tr.gamePath = getGamePath();
|
tr.gamePath = getGamePath();
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
#endregion
|
|
||||||
|
private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
|
||||||
|
{
|
||||||
|
notifyIcon1.Icon = null;
|
||||||
|
notifyIcon1.Dispose();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user