Skip to content

Commit

Permalink
Merge pull request #475 from xzqsr/master
Browse files Browse the repository at this point in the history
PropertyGrid Bug Fix: when an enum is changed, PropertyChanged EventArgs returns the enum type, which should be the enum variable name.
  • Loading branch information
rds1983 authored Dec 2, 2024
2 parents 49242e4 + b500529 commit 51b52cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Myra/Graphics2D/UI/Properties/PropertyGrid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ private ComboView CreateEnumEditor(Record record, bool hasSetter)
if (cv.SelectedIndex != -1)
{
SetValue(record, _object, cv.SelectedItem.Tag);
FireChanged(enumType.Name);
FireChanged(record.Name);
}
};
}
Expand Down Expand Up @@ -1472,4 +1472,4 @@ public void ApplyPropertyGridStyle(TreeStyle style)
PropertyGridStyle = style;
}
}
}
}

0 comments on commit 51b52cb

Please sign in to comment.