commit
dcdf11bfae
1 changed files with 9 additions and 9 deletions
|
|
@ -238,17 +238,17 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
return;
|
||||
}
|
||||
|
||||
string json = this.ToJson();
|
||||
|
||||
var printerInfo = ProfileManager.Instance[this.ID];
|
||||
if (printerInfo != null)
|
||||
{
|
||||
printerInfo.ContentSHA1 = this.ComputeSha1(json);
|
||||
ProfileManager.Instance.Save();
|
||||
}
|
||||
|
||||
lock (writeLock)
|
||||
{
|
||||
string json = this.ToJson();
|
||||
|
||||
var printerInfo = ProfileManager.Instance[this.ID];
|
||||
if (printerInfo != null)
|
||||
{
|
||||
printerInfo.ContentSHA1 = this.ComputeSha1(json);
|
||||
ProfileManager.Instance.Save();
|
||||
}
|
||||
|
||||
File.WriteAllText(DocumentPath, json);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue