From 176dbf366b3042576d1247ea46dd6e768223cd13 Mon Sep 17 00:00:00 2001 From: FlayaN Date: Sat, 10 Feb 2024 17:34:03 +0100 Subject: [PATCH] fix: don't show grayed out features if no version was found --- src/Menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Menu.cpp b/src/Menu.cpp index cb087c7cc..67549828d 100644 --- a/src/Menu.cpp +++ b/src/Menu.cpp @@ -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());