We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent befdcfe commit f13dc31Copy full SHA for f13dc31
1 file changed
source/Reloaded.Mod.Launcher/Controls/PropertyGridEx.cs
@@ -62,7 +62,7 @@ public void ResetValues()
62
{
63
var property = _properties[x];
64
if (property.DefaultValue != null)
65
- _propertyDescriptors[x].SetValue(property.Value, property.DefaultValue);
+ _propertyDescriptors[x].SetValue(property.Value, Convert.ChangeType(property.DefaultValue, property.PropertyType));
66
}
67
68
0 commit comments