use key to set enum field

This commit is contained in:
Lars Brubaker 2021-02-08 18:00:22 -08:00
parent cc5a660b41
commit aaca06e18b

View file

@ -135,7 +135,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
radioButton.SelectedBackgroundColor = theme.PrimaryAccentColor;
// set it if checked
if (enumItem.Value == this.InitialValue)
if (enumItem.Key == this.InitialValue)
{
radioButton.Checked = true;
}