Revert back to lazy loaded KnownSettings
This commit is contained in:
parent
80dab6c9e8
commit
215a27f79c
1 changed files with 13 additions and 1 deletions
|
|
@ -726,7 +726,19 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
#endregion
|
||||
|
||||
[JsonIgnore]
|
||||
public static HashSet<string> KnownSettings { get; } = LoadSettingsNamesFromPropertiesJson();
|
||||
private static HashSet<string> knownSettings;
|
||||
public static HashSet<string> KnownSettings
|
||||
{
|
||||
get
|
||||
{
|
||||
if (knownSettings == null)
|
||||
{
|
||||
knownSettings = LoadSettingsNamesFromPropertiesJson();
|
||||
}
|
||||
|
||||
return knownSettings;
|
||||
}
|
||||
}
|
||||
|
||||
private static HashSet<string> LoadSettingsNamesFromPropertiesJson()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue