Skip to content

Commit

Permalink
Fix BPC columns in gui
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherRabotin committed Nov 5, 2024
1 parent 55049ba commit 6f43aa9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions anise-gui/src/bpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ pub fn bpc_ui(
ui.label(name);
});

row.col(|ui| match orientation_name_from_id(summary.frame_id) {
Some(name) => {
ui.label(format!("{name} ({})", summary.frame_id));
}
None => {
ui.label(format!("{}", summary.frame_id));
}
});

row.col(|ui| {
if show_unix {
ui.text_edit_singleline(&mut format!(
Expand All @@ -80,15 +89,6 @@ pub fn bpc_ui(
};
});

row.col(|ui| match orientation_name_from_id(summary.frame_id) {
Some(name) => {
ui.label(format!("{name} ({})", summary.frame_id));
}
None => {
ui.label(format!("{}", summary.frame_id));
}
});

row.col(
|ui| match orientation_name_from_id(summary.inertial_frame_id) {
Some(name) => {
Expand Down

0 comments on commit 6f43aa9

Please sign in to comment.