Menu row trial names its rows with owned labels

This commit is contained in:
aiongg
2026-11-17 14:40:48 +00:00
parent f17ae25311
commit e414c8c9bd
+1 -1
View File
@@ -116,7 +116,7 @@ fn a_pointer_move_over_menu_rows_lights_the_row_under_it_in_that_frame() {
let rows = rows.clone();
let titles = vec![MenuTitle::new("&File", move |ui| {
for name in &rows {
let active = MenuItem::new(name.as_str()).show(ui).active;
let active = MenuItem::new(name.clone()).show(ui).active;
// The last run of the frame is the one that paints.
seen.borrow_mut().insert(name.clone(), active);
}