[RAPPS] Don't display Freeware license string if the type is also Freeware (#7689)

License=Freeware, LicenseType=2 should not display as "Freeware (Freeware)"
This commit is contained in:
Whindmar Saksit
2025-01-30 21:14:10 +01:00
committed by GitHub
parent a23db39c8a
commit d5ce3d28ab

View File

@@ -163,16 +163,16 @@ CAvailableApplicationInfo::LicenseString()
LicenseType licenseType;
if (IsKnownLicenseType(IntBuffer))
{
licenseType = static_cast<LicenseType>(IntBuffer);
}
else
{
licenseType = LICENSE_NONE;
if (licenseType == LICENSE_NONE || licenseType == LICENSE_FREEWARE)
{
if (szLicenseString.CompareNoCase(L"Freeware") == 0)
{
licenseType = LICENSE_FREEWARE;
szLicenseString = L"";
szLicenseString = L""; // Don't display as "Freeware (Freeware)"
}
}