Skip to content

Commit

Permalink
fix: don't show grayed out features if no version was found
Browse files Browse the repository at this point in the history
  • Loading branch information
FlayaN committed Feb 14, 2024
1 parent 2999950 commit 04a3d54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ void Menu::DrawSettings()
selectedFeature = i;
ImGui::SameLine();
ImGui::TextDisabled(fmt::format("({})", featureList[i]->version).c_str());
} else {
} else if (!featureList[i]->version.empty()) {
ImGui::TextDisabled(fmt::format("{} ({})", featureList[i]->GetName(), featureList[i]->version).c_str());
if (auto _tt = Util::HoverTooltipWrapper()) {
ImGui::Text(featureList[i]->failedLoadedMessage.c_str());
Expand Down

0 comments on commit 04a3d54

Please sign in to comment.