mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Fixed variant issue
This commit is contained in:
parent
c0b8d151de
commit
5b59c15357
1 changed files with 1 additions and 2 deletions
|
@ -1639,14 +1639,13 @@ namespace IDE.ui
|
|||
}
|
||||
else
|
||||
{
|
||||
//Array enumValues = ;
|
||||
for (var enumValue in ((TypeInstance)valueType).GetFields())
|
||||
{
|
||||
var enumStr = scope String();
|
||||
enumStr.Append(enumValue.Name);
|
||||
GetEnumDisp(enumStr);
|
||||
var menuItem = menu.AddItem(enumStr);
|
||||
Variant newVariant = enumValue.GetValue();
|
||||
Variant newVariant = enumValue.GetValue(null);
|
||||
menuItem.mOnMenuItemSelected.Add(new (evt) => { ChangeProperty(propEntries, newVariant); });
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue