Rename GetLongHashCode to GetGCodeCacheKey
- Issue MatterHackers/MCCentral#5194 Rename PrinterSettings.GetLongHashCode to better depict its intended use
This commit is contained in:
parent
f92e6b71d5
commit
40a6c9438f
3 changed files with 6 additions and 6 deletions
|
|
@ -906,15 +906,15 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
}
|
||||
}
|
||||
|
||||
public ulong GetLongHashCode()
|
||||
public ulong GetGCodeCacheKey()
|
||||
{
|
||||
var bigStringForHashCode = new StringBuilder();
|
||||
|
||||
foreach (var keyValue in this.BaseLayer)
|
||||
// Loop over all known settings
|
||||
foreach (var keyValue in PrinterSettings.SettingsData)
|
||||
{
|
||||
// Add key/value to accumulating string for hash
|
||||
SliceSettingData data = PrinterSettings.SettingsData[keyValue.Key];
|
||||
if (data?.RebuildGCodeOnChange == true)
|
||||
if (keyValue.Value?.RebuildGCodeOnChange == true)
|
||||
{
|
||||
bigStringForHashCode.Append(keyValue.Key);
|
||||
bigStringForHashCode.Append(this.GetValue(keyValue.Key));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue