mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 20:52:44 +01:00
Minor fix for check updates
This commit is contained in:
parent
cf9b26b514
commit
340f1b154a
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user