mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
fix(Installer): use description as punchline if none is set
This commit is contained in:
parent
995891601d
commit
b2aa927ced
1 changed files with 8 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue