Fixed group titles to show actual name when only one version is favorited

Updated the version name logic in gallery view to display the actual game name instead of the simplified base name when only one version of a grouped game is present in favorites
This commit is contained in:
jp64k
2026-01-30 04:17:38 +01:00
parent 50b52d963b
commit f21efcd476

View File

@@ -222,6 +222,9 @@ public class FastGalleryPanel : Control
{
if (versions == null || versions.Count == 0) return "";
// If only one version, use actual name
if (versions.Count == 1) return versions[0].Text;
// Get base name without (...) - except (MR-Fix)
string name = versions.OrderBy(v => v.Text.Length).First().Text;
bool hasMrFix = name.IndexOf("(MR-Fix)", StringComparison.OrdinalIgnoreCase) >= 0;