Remove missing Value error, it should just use the default value if it's not specified
This commit is contained in:
@@ -34,11 +34,6 @@ public partial class SettingEntry<T> : SettingBase, ISettingBase<T>, INetworkSyn
|
|||||||
}
|
}
|
||||||
ValueChangePredicate = valueChangePredicate;
|
ValueChangePredicate = valueChangePredicate;
|
||||||
|
|
||||||
if (ConfigInfo.Element.Attribute("Value") is null)
|
|
||||||
{
|
|
||||||
ThrowHelper.ThrowArgumentException($"The Setting {InternalName} in package {OwnerPackage.Name} does not have a 'Value' attribute!");
|
|
||||||
}
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Value = (T)Convert.ChangeType(ConfigInfo.Element.GetAttributeString("Value", null), typeof(T));
|
Value = (T)Convert.ChangeType(ConfigInfo.Element.GetAttributeString("Value", null), typeof(T));
|
||||||
|
|||||||
Reference in New Issue
Block a user