Skip to content

Commit

Permalink
Fix string comparison for hiding "Unknown" CPU name
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Aug 17, 2021
1 parent 57dc6be commit 3c62fbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UI/DevScreens.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ void SystemInfoScreen::CreateViews() {
deviceSpecs->Add(new ItemHeader(si->T("CPU Information")));

// Don't bother showing the CPU name if we don't have one.
if (cpu_info.brand_string != "Unknown") {
if (strcmp(cpu_info.brand_string, "Unknown") != 0) {
deviceSpecs->Add(new InfoItem(si->T("CPU Name", "Name"), cpu_info.brand_string));
}

Expand Down

0 comments on commit 3c62fbc

Please sign in to comment.