Fix build after merging main

category_fields now returns the rows that carry a description, so the
Hold Shortcut Delay test's UI closure discards the value, as the other
prefs_dialog tests do.
This commit is contained in:
dotCooCoo
2026-11-16 09:19:53 -08:00
parent 0d8fef4fd6
commit 7f3656a58d
+3 -1
View File
@@ -1117,7 +1117,9 @@ fn hold_shortcut_delay_dims_without_hold_shortcuts() {
events,
..Default::default()
};
let mut out = ctx.run_ui(raw, |ui| category_fields(ui, &mut a, d, "General"));
let mut out = ctx.run_ui(raw, |ui| {
category_fields(ui, &mut a, d, "General");
});
out.textures_delta.clear();
let label = out.shapes.iter().find_map(|c| text(&c.shape, &|t| t.starts_with("Hold Shortcut Delay")));
let field = out.shapes.iter().find_map(|c| text(&c.shape, &|t| t.starts_with("0.35")));