From 4f80a8f61a462ad04e97c8363e862c51c79a9625 Mon Sep 17 00:00:00 2001 From: rewin Date: Tue, 20 Feb 2024 21:06:10 +0300 Subject: [PATCH] Update utils.rs --- studio/src/ui/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/studio/src/ui/utils.rs b/studio/src/ui/utils.rs index 5d43a81..0a57641 100644 --- a/studio/src/ui/utils.rs +++ b/studio/src/ui/utils.rs @@ -529,7 +529,7 @@ pub fn show_reflect(r: &dyn Reflect, reflect: ReflectChange) -> Option ("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())); }