mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-02 18:26:27 +13:00
Fix update message box issue
This commit is contained in:
parent
6d63740228
commit
9f6bac3856
4 changed files with 3 additions and 12 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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")]
|
Loading…
Reference in a new issue