Make RadioInput accept optional selected_index

This commit is contained in:
Keavon Chambers
2023-09-11 15:40:05 -07:00
parent b29acbd784
commit 88bdf9580f
12 changed files with 23 additions and 23 deletions
@@ -94,7 +94,7 @@ impl ToolColorOptions {
entry
})
.collect();
let radio = RadioInput::new(entries).selected_index(self.color_type.clone() as u32).widget_holder();
let radio = RadioInput::new(entries).selected_index(Some(self.color_type.clone() as u32)).widget_holder();
widgets.push(radio);
widgets.push(Separator::new(SeparatorType::Related).widget_holder());