have a timeout on waiting fro help to load

This commit is contained in:
larsbrubaker 2020-11-28 09:52:59 -08:00
parent 659fe98769
commit 85d52ed25d

View file

@ -339,7 +339,9 @@ namespace MatterHackers.MatterControl
double maxMenuItemWidth = 0;
while (ApplicationController.Instance.HelpArticles.Path == null)
var time = UiThread.CurrentTimerMs;
while (ApplicationController.Instance.HelpArticles.Path == null
&& UiThread.CurrentTimerMs < time + 5000)
{
Thread.Sleep(10);
}