fix(Installer): use description as punchline if none is set

This commit is contained in:
goaaats 2021-10-08 20:55:04 +02:00
parent 995891601d
commit b2aa927ced
No known key found for this signature in database
GPG key ID: F18F057873895461

View file

@ -1124,6 +1124,14 @@ namespace Dalamud.Interface.Internal.Windows
{
ImGui.TextWrapped(manifest.Punchline);
}
else if (!string.IsNullOrWhiteSpace(manifest.Description))
{
const int punchlineLen = 200;
ImGui.TextWrapped(manifest.Description.Length < punchlineLen
? manifest.Description
: manifest.Description[..punchlineLen]);
}
startCursor.Y += sectionSize;
ImGui.SetCursorPos(startCursor);