Fix update message box issue

This commit is contained in:
Jaex 2016-08-19 04:54:22 +03:00
parent 6d63740228
commit 9f6bac3856
4 changed files with 3 additions and 12 deletions

View file

@ -88,7 +88,6 @@ private void InitializeComponent()
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.Name = "UpdateMessageBox";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.UpdateMessageBox_FormClosing);
this.Shown += new System.EventHandler(this.UpdateMessageBox_Shown);
this.ResumeLayout(false);

View file

@ -98,14 +98,6 @@ private void UpdateMessageBox_Shown(object sender, EventArgs e)
}
}
private void UpdateMessageBox_FormClosing(object sender, FormClosingEventArgs e)
{
if (e.CloseReason == CloseReason.UserClosing)
{
DialogResult = DialogResult.No;
}
}
private void cbDontShow_CheckedChanged(object sender, EventArgs e)
{
DontShow = cbDontShow.Checked;

View file

@ -715,7 +715,7 @@ private void CheckUpdate()
{
UpdateChecker updateChecker = TaskHelpers.CheckUpdate();
if (UpdateMessageBox.Start(updateChecker, firstUpdateCheck) == DialogResult.No)
if (UpdateMessageBox.Start(updateChecker, firstUpdateCheck) != DialogResult.Yes)
{
TimeSpan interval = TimeSpan.FromHours(24);
updateTimer.Change(interval, interval);

View file

@ -11,5 +11,5 @@
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: Guid("82E6AC09-0FEF-4390-AD9F-0DD3F5561EFC")]
[assembly: AssemblyVersion("11.2.0")]
[assembly: AssemblyFileVersion("11.2.0")]
[assembly: AssemblyVersion("11.2.1")]
[assembly: AssemblyFileVersion("11.2.1")]