mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-30 10:15:00 +01:00
Menu row trial names its rows with owned labels
This commit is contained in:
1 parent
f17ae25311
commit
e414c8c9bd
1 file changed
+1
-1
@@ -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