Fix crash when cancelling mod download
This commit is contained in:
@@ -273,7 +273,7 @@ public class ModListComponent : IRenderComponent
|
||||
var description = details.m_rgchDescription;
|
||||
list.Add(new(details.m_nPublishedFileId.m_PublishedFileId, title,
|
||||
string.IsNullOrEmpty(item.Tooltip)
|
||||
? description[..Math.Min(description.Length - 1, 255)]
|
||||
? description[..Math.Min(description.Length, 255)]
|
||||
: item.Tooltip,
|
||||
item.Description,
|
||||
description, $"https://steamcommunity.com/sharedfiles/filedetails/?id={details.m_nPublishedFileId.m_PublishedFileId}",
|
||||
|
Reference in New Issue
Block a user