mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-17 23:02:31 +00:00
Menu row trial names its rows with owned labels
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user