use key to set enum field
This commit is contained in:
parent
cc5a660b41
commit
aaca06e18b
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue