Create the baseLayerCache on first request rather than static init.
This commit is contained in:
parent
768d555f2a
commit
328204b14b
1 changed files with 6 additions and 1 deletions
|
|
@ -244,12 +244,17 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
return "";
|
||||
}
|
||||
|
||||
static PrinterSettingsLayer baseLayerCache = SliceSettingsOrganizer.Instance.GetDefaultSettings();
|
||||
static PrinterSettingsLayer baseLayerCache;
|
||||
[JsonIgnore]
|
||||
public PrinterSettingsLayer BaseLayer
|
||||
{
|
||||
get
|
||||
{
|
||||
if (baseLayerCache == null)
|
||||
{
|
||||
baseLayerCache = SliceSettingsOrganizer.Instance.GetDefaultSettings();
|
||||
}
|
||||
|
||||
return baseLayerCache;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue