Reset settings when creating instance
This commit is contained in:
@@ -20,6 +20,7 @@ namespace Pilz.Configuration
|
||||
|
||||
if (Activator.CreateInstance<T>() is T settingsNew)
|
||||
{
|
||||
settingsNew.Reset();
|
||||
mySettings.Add(T.Identifier, settingsNew);
|
||||
return settingsNew;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user