Fix encountered exception

- Call to ReadAllText returns the file text, subsequent call in error
This commit is contained in:
John Lewin 2020-06-26 14:13:45 -07:00
parent 2b748aa9af
commit 0178f2d5f7

View file

@ -244,8 +244,7 @@ namespace MatterHackers.MatterControl
{
try
{
textFileName = AggContext.StaticData.ReadAllText(Path.Combine("TextWebCache", longHash.ToString() + ".txt"));
fileText = File.ReadAllText(textFileName);
fileText = AggContext.StaticData.ReadAllText(Path.Combine("TextWebCache", longHash.ToString() + ".txt"));
updateResult?.Invoke(fileText);
}
catch