mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-17 00:13:17 +00:00
Update utils.rs
This commit is contained in:
@@ -529,7 +529,7 @@ pub fn show_reflect(r: &dyn Reflect, reflect: ReflectChange) -> Option<Element>
|
||||
("value".to_string(), variant.name().to_string()),
|
||||
];
|
||||
|
||||
let is_active_variant = i == v.variant_index();
|
||||
let is_active_variant = (i == v.variant_index());
|
||||
if is_active_variant {
|
||||
attributes.push(("selected".to_string(), "".to_string()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user