Setting default data

This commit is contained in:
Lars Brubaker 2020-05-21 17:29:20 -07:00
parent 7d3cce547d
commit 195888c8f8
6 changed files with 41 additions and 2 deletions

View file

@ -209,7 +209,7 @@ namespace MatterHackers.MatterControl
// change to a path that makes it easy to collect up all the text we want to ship with MC
if (checkStaticData)
{
textFileName = ApplicationController.CacheablePath("Text_OverRide", longHash.ToString() + ".txt");
textFileName = ApplicationController.CacheablePath("TextWebCache", longHash.ToString() + ".txt");
}
string fileText = null;
@ -230,7 +230,7 @@ namespace MatterHackers.MatterControl
{
try
{
textFileName = AggContext.StaticData.ReadAllText(Path.Combine("Text_OverRide", longHash.ToString() + ".txt"));
textFileName = AggContext.StaticData.ReadAllText(Path.Combine("TextWebCache", longHash.ToString() + ".txt"));
fileText = File.ReadAllText(textFileName);
updateResult?.Invoke(fileText);
}