Skip to content

Commit ae3dfb1

Browse files
authored
options_menu: append inaccessible reason to description (#446)
1 parent db76ffa commit ae3dfb1

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

UnleashedRecomp/ui/options_menu.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,7 +1458,7 @@ static void DrawInfoPanel(ImVec2 infoMin, ImVec2 infoMax)
14581458

14591459
if (g_inaccessibleReason)
14601460
{
1461-
desc = *g_inaccessibleReason;
1461+
desc += "\n\n" + *g_inaccessibleReason;
14621462
}
14631463
else
14641464
{
@@ -1476,10 +1476,9 @@ static void DrawInfoPanel(ImVec2 infoMin, ImVec2 infoMax)
14761476
}
14771477

14781478
const auto& valueDescription = g_selectedItem->GetValueDescription(Config::Language);
1479+
14791480
if (!valueDescription.empty())
1480-
{
14811481
desc += "\n\n" + valueDescription;
1482-
}
14831482
}
14841483

14851484
clipRectMin = { clipRectMin.x, thumbnailMax.y };

0 commit comments

Comments
 (0)