Minor fix for check updates

This commit is contained in:
niksedk 2014-06-22 10:12:28 +02:00
parent cf9b26b514
commit 340f1b154a

View File

@ -14355,6 +14355,7 @@ namespace Nikse.SubtitleEdit.Forms
form.ShowDialog(this); form.ShowDialog(this);
} }
_checkForUpdatesHelper = null; _checkForUpdatesHelper = null;
_timerCheckForUpdates = null;
} }
void _timerDoSyntaxColoring_Tick(object sender, EventArgs e) void _timerDoSyntaxColoring_Tick(object sender, EventArgs e)
@ -19449,6 +19450,15 @@ namespace Nikse.SubtitleEdit.Forms
private void checkForUpdatesToolStripMenuItem_Click(object sender, EventArgs e) private void checkForUpdatesToolStripMenuItem_Click(object sender, EventArgs e)
{ {
try
{
if (_timerCheckForUpdates != null)
_timerCheckForUpdates.Stop();
}
catch
{
}
var form = new CheckForUpdates(); var form = new CheckForUpdates();
form.ShowDialog(this); form.ShowDialog(this);
Configuration.Settings.General.LastCheckForUpdates = DateTime.Now; Configuration.Settings.General.LastCheckForUpdates = DateTime.Now;