Select the implementation without parameters

This commit is contained in:
766974616c79
2026-01-26 16:39:37 +01:00
committed by Matt Stevens
parent 3f5d3adef8
commit 236b072202

View File

@@ -159,7 +159,7 @@ public class GenericControlWidget : ControlObjectWidget
string labelText = displayInfo.Name;
// If the type has a custom ToString(), use that instead of the type name.
if ( type.GetMethod( "ToString" ).DeclaringType != typeof( object ) )
if ( type.GetMethod( "ToString", Type.EmptyTypes ).DeclaringType != typeof( object ) )
{
labelText = value?.ToString() ?? labelText;
}