Skip to content

Commit

Permalink
Only show features in about-menu for rerun-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Oct 15, 2024
1 parent 474e16f commit d7dabdf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/viewer/re_viewer/src/ui/rerun_menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,10 @@ impl App {
{target_triple}"
);

if !features.is_empty() {
label += &format!("\nFeatures: {features}");
// It is really the features of `rerun-cli` (the `rerun` binary) that are interesting.
// For the web-viewer we get `crate_name: "re_viewer"` here, which is much less interesting.
if crate_name == "rerun-cli" && !features.is_empty() {
label += &format!("\n{crate_name} features: {features}");
}

if !rustc_version.is_empty() {
Expand Down

0 comments on commit d7dabdf

Please sign in to comment.