Browser: show given names as typed, not translated as labels (#1228) (#1264)

Browser rows that are names someone gave (bodies, sketches, components, joints, views...) show as typed instead of being translated as UI labels; default names like Sketch1 are still translated. Fixes #1228.
This commit is contained in:
DuBearte authored and GitHub committed 2026-10-14 21:45:13 -04:00
1 parent c008addae2
commit b1695873f5
3 files changed
+65 -8

No files matched your search

+10 -1
View File
@@ -1119,7 +1119,16 @@ pub fn browser_joints(app: &mut SolveApp, ui: &mut egui::Ui, depth: usize) {
let r = draw_row(
ui,
ui.id().with(("joint", id)),
&Row { depth: depth + 1, eye: Some(visible), icon: "joint", label: &name, selected, dim: suppressed || !visible, ..Default::default() },
&Row {
depth: depth + 1,
eye: Some(visible),
icon: "joint",
label: &name,
name: true,
selected,
dim: suppressed || !visible,
..Default::default()
},
);
if let Some(resp) = &r.resp {
resp.clone().on_hover_text(format!("{kind:?} joint"));