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.
2 parents befdcfe + f13dc31 commit 561f15dCopy full SHA for 561f15d
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