diff --git a/VisualPascalABCNET/Form1.cs b/VisualPascalABCNET/Form1.cs index 8819b5f58..0669d8a52 100644 --- a/VisualPascalABCNET/Form1.cs +++ b/VisualPascalABCNET/Form1.cs @@ -1476,11 +1476,17 @@ namespace VisualPascalABC __showhelpinqueue(); } - private void miCheckUpdates_Click(object sender, EventArgs e) + private void __checkforupdate(object state) { WorkbenchServiceFactory.UpdateService.CheckForUpdates(); } + private void miCheckUpdates_Click(object sender, EventArgs e) + { + if (!ThreadPool.QueueUserWorkItem(__checkforupdate)) + __checkforupdate(null); + } + private void cmCollapseRegions_Click(object sender, EventArgs e) { WorkbenchServiceFactory.EditorService.CollapseRegions();